adjust sizes of buttons. Use modals on android

This commit is contained in:
Kyle Spearrin 2016-12-06 22:36:33 -05:00
parent 7c856d08c4
commit 9879f7fa0a
2 changed files with 4 additions and 18 deletions

View file

@ -109,8 +109,8 @@ namespace Bit.App.Pages
{
// NOTE: This is going to cause problems with i18n strings since various languages have difference string sizes
PasswordCell.Button1.WidthRequest = 40;
PasswordCell.Button2.WidthRequest = 55;
UsernameCell.Button1.WidthRequest = 55;
PasswordCell.Button2.WidthRequest = 59;
UsernameCell.Button1.WidthRequest = 59;
UriCell.Button1.WidthRequest = 75;
}

View file

@ -49,26 +49,12 @@ namespace Bit.App
public static async Task PushForDeviceAsync(this INavigation navigation, Page page)
{
if(Device.OS == TargetPlatform.iOS)
{
await navigation.PushModalAsync(new ExtendedNavigationPage(page), true);
}
else
{
await navigation.PushAsync(page, true);
}
await navigation.PushModalAsync(new ExtendedNavigationPage(page), true);
}
public static async Task PopForDeviceAsync(this INavigation navigation)
{
if(Device.OS == TargetPlatform.iOS)
{
await navigation.PopModalAsync(true);
}
else
{
await navigation.PopAsync(true);
}
await navigation.PopModalAsync(true);
}
public static void AdjustMarginsForDevice(this View view)