summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
index 04eb6d4f..6c75587e 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/EntryRenderer.cs
@@ -3,6 +3,7 @@ using System.ComponentModel;
using System.Drawing;
using UIKit;
+using Xamarin.Forms.PlatformConfiguration.iOSSpecific;
namespace Xamarin.Forms.Platform.iOS
{
@@ -62,6 +63,7 @@ namespace Xamarin.Forms.Platform.iOS
UpdateFont();
UpdateKeyboard();
UpdateAlignment();
+ UpdateAdjustsFontSizeToFitWidth();
}
}
@@ -90,6 +92,8 @@ namespace Xamarin.Forms.Platform.iOS
UpdateColor();
UpdatePlaceholder();
}
+ else if (e.PropertyName == PlatformConfiguration.iOSSpecific.Entry.AdjustsFontSizeToFitWidthProperty.PropertyName)
+ UpdateAdjustsFontSizeToFitWidth();
base.OnElementPropertyChanged(sender, e);
}
@@ -137,6 +141,11 @@ namespace Xamarin.Forms.Platform.iOS
Control.TextColor = textColor.ToUIColor();
}
+ void UpdateAdjustsFontSizeToFitWidth()
+ {
+ Control.AdjustsFontSizeToFitWidth = Element.OnThisPlatform().AdjustsFontSizeToFitWidth();
+ }
+
void UpdateFont()
{
Control.Font = Element.ToUIFont();