Bug 58741 - Border of Entry appears to have a minimum width, starts being clipped at smaller WidthRequests (~<50).
Summary: Border of Entry appears to have a minimum width, starts being clipped at smal...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-08-13 20:08 UTC by Nicholas Bauer
Modified: 2017-09-25 16:06 UTC (History)
3 users (show)

Tags: uwp, fillandexpand, ac
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 58741 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Nicholas Bauer 2017-08-13 20:08:11 UTC
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"

    <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"/>


Seen on UWP, Android appears to be fine.
Comment 1 Paul DiPietro [MSFT] 2017-08-13 21:10:36 UTC
Also checked against the 2.3.6-nightly
Comment 2 Nicholas Bauer 2017-08-21 03:59:14 UTC
Turns out I was mistaken about the cause. The cause is setting WidthRequest to be too small. For some reason it will shrink the displayed width of the box, but the border of the box appears to have a minimum size than can't be less than 50 or so.
Comment 3 John Hardman 2017-09-25 16:06:56 UTC
The FormsTextBox rendered on UWP has a MinWidth property that can be set to 0 (it seems to default to 64)
However, I found it necessary to tweak some other properties to get the exact result I was after for the scenario where I want the Entry to be the minimum width for its content.

More details at: https://forums.xamarin.com/discussion/comment/298504#Comment_298504