From 1ee686d9bc6cb234f325492663b78a3eb522c693 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Wed, 25 Oct 2017 14:41:01 +0300 Subject: [PATCH] Remove list-view.ios contentInsetAdjustmentBehavior (it should be defult) --- tns-core-modules/ui/list-view/list-view.ios.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/tns-core-modules/ui/list-view/list-view.ios.ts b/tns-core-modules/ui/list-view/list-view.ios.ts index 899475ec8..524b9538a 100644 --- a/tns-core-modules/ui/list-view/list-view.ios.ts +++ b/tns-core-modules/ui/list-view/list-view.ios.ts @@ -205,17 +205,6 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe } } -// TODO: Remove this declaration when 'tns-platform-declarations' is update with iOS 11 declarations -declare const enum UIScrollViewContentInsetAdjustmentBehavior { - Automatic = 0, - - ScrollableAxes = 1, - - Never = 2, - - Always = 3 -} - export class ListView extends ListViewBase { public _ios: UITableView; private _dataSource; @@ -233,11 +222,6 @@ export class ListView extends ListViewBase { this._ios.estimatedRowHeight = DEFAULT_HEIGHT; this._ios.rowHeight = UITableViewAutomaticDimension; this._ios.dataSource = this._dataSource = DataSource.initWithOwner(new WeakRef(this)); - if (parseInt(device.sdkVersion) >= 11) { - // TODO: Remove the cast to 'any' when 'tns-platform-declarations' is update with iOS 11 declarations - (this._ios).contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never; - } - this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this)); this._heights = new Array(); this._map = new Map();