Skip to content

Commit

Permalink
Lock password page tableview to properly adjust row height on iOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Aug 31, 2016
1 parent a7f6205 commit 24722d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/App/Pages/Lock/LockPasswordPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,22 @@ public void Init()
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 () =>
{
await CheckPasswordAsync();
}, ToolbarItemOrder.Default, 0);

ToolbarItems.Add(loginToolbarItem);
Title = "Verify Master Password";
Content = stackLayout;
Content = scrollView;
}

private void Entry_Completed(object sender, EventArgs e)
Expand Down

0 comments on commit 24722d3

Please sign in to comment.