summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-06-21 01:00:58 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-06-21 01:00:58 (GMT)
commitb7b0bf559ad8759110231d73ead0f19e53de5df7 (patch)
tree82502b3650b80d49361c967dad74538498aaba70 /Xamarin.Forms.Core
parent723cb80c6b0eaa587f00fc6ba38dcd1887e6943d (diff)
downloadxamarin-forms-b7b0bf559ad8759110231d73ead0f19e53de5df7.zip
xamarin-forms-b7b0bf559ad8759110231d73ead0f19e53de5df7.tar.gz
xamarin-forms-b7b0bf559ad8759110231d73ead0f19e53de5df7.tar.bz2
[iOS] workaround a weird iOS behavior. (#987)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/Entry.cs24
1 files changed, 10 insertions, 14 deletions
diff --git a/Xamarin.Forms.Core/Entry.cs b/Xamarin.Forms.Core/Entry.cs
index 46cd774..c891456 100644
--- a/Xamarin.Forms.Core/Entry.cs
+++ b/Xamarin.Forms.Core/Entry.cs
@@ -88,25 +88,21 @@ namespace Xamarin.Forms
set { SetValue(FontSizeProperty, value); }
}
- void IFontElement.OnFontFamilyChanged(string oldValue, string newValue)
- {
- }
-
- void IFontElement.OnFontSizeChanged(double oldValue, double newValue)
- {
- }
-
double IFontElement.FontSizeDefaultValueCreator() =>
Device.GetNamedSize(NamedSize.Default, (Entry)this);
- void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue)
- {
- }
+ void IFontElement.OnFontAttributesChanged(FontAttributes oldValue, FontAttributes newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
- void IFontElement.OnFontChanged(Font oldValue, Font newValue)
- {
- }
+ void IFontElement.OnFontFamilyChanged(string oldValue, string newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+
+ void IFontElement.OnFontSizeChanged(double oldValue, double newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+ void IFontElement.OnFontChanged(Font oldValue, Font newValue) =>
+ InvalidateMeasureInternal(InvalidationTrigger.MeasureChanged);
+
public event EventHandler Completed;
public event EventHandler<TextChangedEventArgs> TextChanged;