update renders to use fixed font sizes when not using the named ones.

This commit is contained in:
Kyle Spearrin 2016-07-25 18:00:57 -04:00
parent b8c6e77fca
commit 118a790689
3 changed files with 12 additions and 2 deletions

View file

@ -48,6 +48,11 @@ namespace Bit.iOS.Controls
{ {
pointSize *= .6f; pointSize *= .6f;
} }
else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
{
// not using dynamic font sizes, return
return;
}
Control.Font = UIFont.FromDescriptor(Element.Font.ToUIFont().FontDescriptor, pointSize); Control.Font = UIFont.FromDescriptor(Element.Font.ToUIFont().FontDescriptor, pointSize);
} }

View file

@ -60,9 +60,9 @@ namespace Bit.iOS.Controls
{ {
pointSize *= .6f; pointSize *= .6f;
} }
else else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
{ {
// not using dyanmic font sizes, return // not using dynamic font sizes, return
return; return;
} }

View file

@ -122,6 +122,11 @@ namespace Bit.iOS.Controls
{ {
pointSize *= .6f; pointSize *= .6f;
} }
else if(size != Device.GetNamedSize(NamedSize.Default, typeof(Label)))
{
// not using dynamic font sizes, return
return;
}
if(!string.IsNullOrWhiteSpace(Element.FontFamily)) if(!string.IsNullOrWhiteSpace(Element.FontFamily))
{ {