Fix Android MenuButton size

This commit is contained in:
2019-07-11 07:42:48 -05:00
parent cebf5425f8
commit c241fbd2d0
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -34,12 +34,11 @@ namespace qController
iNav = MainPage.Navigation;*/
mainDisplayInfo = DeviceDisplay.MainDisplayInfo;
Height = mainDisplayInfo.Height / mainDisplayInfo.Density;
Width = mainDisplayInfo.Width / mainDisplayInfo.Density;
HeightUnit = Height / 100.0;
WidthUnit = Width / 100.0;
System.Console.WriteLine(Height);
System.Console.WriteLine(Width);
switch (Device.RuntimePlatform)
{
case Device.iOS:
@@ -54,13 +54,13 @@ namespace qController
switch (Device.RuntimePlatform)
{
case Device.iOS:
menuButton.Margin =
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
break;
case Device.Android:
topBar.HeightRequest = Math.Max(App.Height * .09, 65);
menuButton.Margin = new Thickness(20, 10, 20, 10);
menuButton.Margin = new Thickness(App.WidthUnit * 2, 0, 0, App.WidthUnit * 2);
menuButton.FontSize = App.Height * .04;
break;
}