summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authoradrianknight89 <adrianknight89@outlook.com>2016-11-15 16:17:29 -0600
committerE.Z. Hart <hartez@users.noreply.github.com>2016-11-15 15:17:29 -0700
commit0ccae8a3af5f2617fe621562fbbdaac3df7e7b31 (patch)
treefe8772dd8828114df6b308dae3c640f8a7e5e532 /Xamarin.Forms.Platform.iOS
parent0d883f64cb110fbca6848cb7821d66bfbdd8bbbe (diff)
downloadxamarin-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.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
index 6c75587e..c56060ae 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
@@ -45,6 +45,7 @@ namespace Xamarin.Forms.Platform.iOS
_defaultTextColor = textField.TextColor;
textField.BorderStyle = UITextBorderStyle.RoundedRect;
+ textField.ClipsToBounds = true;
textField.EditingChanged += OnEditingChanged;