Lock password page tableview to properly adjust row height on iOS.

This commit is contained in:
Kyle Spearrin 2016-08-30 22:34:49 -04:00
parent a7f6205030
commit 24722d3644

View file

@ -77,6 +77,14 @@ namespace Bit.App.Pages
Children = { table, logoutButton } Children = { table, logoutButton }
}; };
var scrollView = new ScrollView { Content = stackLayout };
if(Device.OS == TargetPlatform.iOS)
{
table.RowHeight = -1;
table.EstimatedRowHeight = 70;
}
var loginToolbarItem = new ToolbarItem("Submit", null, async () => var loginToolbarItem = new ToolbarItem("Submit", null, async () =>
{ {
await CheckPasswordAsync(); await CheckPasswordAsync();
@ -84,7 +92,7 @@ namespace Bit.App.Pages
ToolbarItems.Add(loginToolbarItem); ToolbarItems.Add(loginToolbarItem);
Title = "Verify Master Password"; Title = "Verify Master Password";
Content = stackLayout; Content = scrollView;
} }
private void Entry_Completed(object sender, EventArgs e) private void Entry_Completed(object sender, EventArgs e)