xamarin/Xamarin.Forms

[Long-standing bug] Border of Entry appears to have a minimum width

Open

#8,061 opened on Oct 17, 2019

 (2 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/3 :clock3:help wantedinactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

https://xamarin.github.io/bugzilla-archives/58/58741/bug.html

Steps to Reproduce, Expected Behavior, Actual Behavior

What happens: The right side of the Entry box border is cut off.

What should happen: The right side of the Entry box border should not be cut off.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:MyApp"
             x:Class="MyApp.MainPage"
             x:Name="root">

    <StackLayout Padding="10">
        <StackLayout Orientation="Horizontal">
            <Label Text="Value:" FontSize="Medium" />
            <Slider Value="1"  Maximum="100" Minimum="1" HorizontalOptions="FillAndExpand" />
            <Entry Text="1" WidthRequest="25" FontSize="Medium"/>
        </StackLayout>
    </StackLayout>

</ContentPage>

Seen on UWP, Android appears to be fine.

Basic Information

  • Version with issue: 2.3.4, 2.3.6-nightly, 4.0.0.425677, 4.3.0.851321-pre3
  • Last known good version: Seems to be bugged from 2.0, the introduction on Xamarin Forms on UWP.
  • IDE: VS16.3.5
  • Platform Target Frameworks:
    • UWP: 17763
  • Affected Devices: Windows 10 devices

Screenshots

image

Reproduction Link

UWPDisabledButton2.zip

Contributor guide