1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-21 11:25:56 +01:00

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;
}
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);
}

View File

@ -60,9 +60,9 @@ namespace Bit.iOS.Controls
{
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;
}

View File

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