1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00

remove ios tableview margin correction

This commit is contained in:
Kyle Spearrin 2016-05-24 19:50:16 -04:00
parent aff118c501
commit 38b7509fbb

View File

@ -18,7 +18,6 @@ namespace Bit.iOS.Controls
var view = e.NewElement as ExtendedTableView;
if(view != null)
{
CorrectMargins(view);
SetScrolling(view);
SetSelection(view);
UpdateRowHeight(view);
@ -33,8 +32,6 @@ namespace Bit.iOS.Controls
var view = (ExtendedTableView)Element;
CorrectMargins(view);
if(e.PropertyName == ExtendedTableView.EnableScrollingProperty.PropertyName)
{
SetScrolling(view);
@ -49,11 +46,6 @@ namespace Bit.iOS.Controls
}
}
private void CorrectMargins(ExtendedTableView view)
{
Control.ContentInset = new UIEdgeInsets(-10, 0, -100, 0);
}
private void SetScrolling(ExtendedTableView view)
{
Control.ScrollEnabled = view.EnableScrolling;