diff options
author | adrianknight89 <adrianknight89@outlook.com> | 2016-11-15 16:17:29 -0600 |
---|---|---|
committer | E.Z. Hart <hartez@users.noreply.github.com> | 2016-11-15 15:17:29 -0700 |
commit | 0ccae8a3af5f2617fe621562fbbdaac3df7e7b31 (patch) | |
tree | fe8772dd8828114df6b308dae3c640f8a7e5e532 /Xamarin.Forms.Controls.Issues | |
parent | 0d883f64cb110fbca6848cb7821d66bfbdd8bbbe (diff) | |
download | xamarin-forms-0ccae8a3af5f2617fe621562fbbdaac3df7e7b31.tar.gz xamarin-forms-0ccae8a3af5f2617fe621562fbbdaac3df7e7b31.tar.bz2 xamarin-forms-0ccae8a3af5f2617fe621562fbbdaac3df7e7b31.zip |
[iOS] Text should not overflow Entry if it can't fit inside the bounds (#400)
* Entry subviews should clip to parent bounds
* Adding sample code
* Adding sample code
* Adding sample code
* remove sample
* remove sample
* add back the sample code
* add back missing include
* use spaces instead of tabs
Diffstat (limited to 'Xamarin.Forms.Controls.Issues')
2 files changed, 37 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44944.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44944.cs new file mode 100644 index 00000000..a05ea81b --- /dev/null +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla44944.cs @@ -0,0 +1,36 @@ +using Xamarin.Forms.CustomAttributes; +using Xamarin.Forms.Internals; + +#if UITEST +using Xamarin.UITest; +using NUnit.Framework; +#endif + +namespace Xamarin.Forms.Controls +{ + [Preserve(AllMembers = true)] + [Issue(IssueTracker.Bugzilla, 44944, "iOS: Text goes outside the bounds of Entry if it can't fit inside", PlatformAffected.iOS)] + public class Bugzilla44944 : TestContentPage + { + protected override void Init() + { + Content = new Grid + { + Children = + { + new Label + { + Text = @"Tap the Entry, type some text, and type anywhere on the screen to dismiss the keyboard. Even though it has a large fontsize (200), the text should not go outside the bounds of the Entry. Instead, it should be clipped by the Entry.", + VerticalOptions = LayoutOptions.Start + }, + new Entry + { + FontSize = 200, + HorizontalOptions = LayoutOptions.Center, + VerticalOptions = LayoutOptions.Center + } + } + }; + } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems index bc656f77..fb70cf67 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems @@ -128,6 +128,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Bugzilla42519.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43516.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla43663.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44944.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44166.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44461.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Bugzilla44584.cs" /> |