Bug 43664 - 'Entry' on iOS not sizing well, but fine on Android. Style issue?
Summary: 'Entry' on iOS not sizing well, but fine on Android. Style issue?
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-23 14:07 UTC by Clint
Modified: 2017-08-04 21:08 UTC (History)
3 users (show)

Tags: iOS ac
Is this bug a regression?: ---
Last known good build:


Attachments
iPad screenshot (117.71 KB, image/png)
2016-08-23 14:07 UTC, Clint
Details
Android screenshot (77.29 KB, image/png)
2016-08-23 14:08 UTC, Clint
Details
Repro project (280.68 KB, application/x-zip-compressed)
2017-01-09 16:34 UTC, E.Z. Hart [MSFT]
Details


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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Clint 2016-08-23 14:07:24 UTC
Created attachment 17177 [details]
iPad screenshot

I've defined a style to apply to Entry boxes.
No sizes are applied to the Entry, the Style or the grid: Everything is allows to size itself so it should appear similar/correct on all devices and platforms.

The Entry looks fine on Android.  However on iOS it does not adjust height correctly.  It looks as if there is no consideration for the font size that comes from a style.

XamForm PCL page placement of the Entry:
            <Entry x:Name="EntName"
                   Grid.Row="1"
                   Grid.Column="2"
                   VerticalOptions="Start"
                   Completed="EntName_OnCompleted"
                   Focused="EntName_OnFocused"
                   Placeholder="Employee Number"
                   PlaceholderColor="Gray"
                   Text="{Binding AppVM.EnteredLogInName}"
                   Style="{StaticResource EntryStyleLrg}" />

Style definitions in use:
            <Style x:Key="EntryStyleLrg"
                   BasedOn="{StaticResource EntryStyleMed}"
                   TargetType="Entry">
                <Setter Property="FontSize" Value="{StaticResource LargeFontSize}" />
            </Style>

            <Style x:Key="EntryStyleMed"
                   TargetType="Entry">
                <Setter Property="BackgroundColor" Value="{StaticResource PrimaryTextColor}" />
                <Setter Property="TextColor" Value="{StaticResource SecondaryTextColor}" />
                <Setter Property="HorizontalOptions" Value="FillAndExpand" />
                <Setter Property="VerticalOptions" Value="CenterAndExpand" />
                <Setter Property="FontSize" Value="{StaticResource MediumFontSize}" />
                <Setter Property="PlaceholderColor" Value="Green" />
            </Style>

            <OnPlatform x:Key="LargeFontSize"
                        x:TypeArguments="x:Double"
                        Android="40.0"
                        WinPhone="40.0"
                        iOS="44.0" />
Comment 1 Clint 2016-08-23 14:08:03 UTC
Created attachment 17178 [details]
Android screenshot
Comment 2 Clint 2016-11-28 18:22:57 UTC
BUMP - 3 months old and this report isn't even 'confirmed' yet?  How far behind is the team dealing with Bugzilla?  How are any of these reports making their way into updates?
Comment 3 E.Z. Hart [MSFT] 2017-01-09 16:34:35 UTC
Created attachment 19132 [details]
Repro project
Comment 4 Paul DiPietro [MSFT] 2017-08-04 21:08:00 UTC
This appears to have been resolved as of the latest 2.3.6-nightly build, when comparing the app running on the Forms version attached to the repro.