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; var view = e.NewElement as ExtendedTableView;
if(view != null) if(view != null)
{ {
CorrectMargins(view);
SetScrolling(view); SetScrolling(view);
SetSelection(view); SetSelection(view);
UpdateRowHeight(view); UpdateRowHeight(view);
@ -33,8 +32,6 @@ namespace Bit.iOS.Controls
var view = (ExtendedTableView)Element; var view = (ExtendedTableView)Element;
CorrectMargins(view);
if(e.PropertyName == ExtendedTableView.EnableScrollingProperty.PropertyName) if(e.PropertyName == ExtendedTableView.EnableScrollingProperty.PropertyName)
{ {
SetScrolling(view); 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) private void SetScrolling(ExtendedTableView view)
{ {
Control.ScrollEnabled = view.EnableScrolling; Control.ScrollEnabled = view.EnableScrolling;