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:
parent
b8c6e77fca
commit
118a790689
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user