mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Remove list-view.ios contentInsetAdjustmentBehavior (it should be defult)
This commit is contained in:
@@ -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 {
|
export class ListView extends ListViewBase {
|
||||||
public _ios: UITableView;
|
public _ios: UITableView;
|
||||||
private _dataSource;
|
private _dataSource;
|
||||||
@@ -233,11 +222,6 @@ export class ListView extends ListViewBase {
|
|||||||
this._ios.estimatedRowHeight = DEFAULT_HEIGHT;
|
this._ios.estimatedRowHeight = DEFAULT_HEIGHT;
|
||||||
this._ios.rowHeight = UITableViewAutomaticDimension;
|
this._ios.rowHeight = UITableViewAutomaticDimension;
|
||||||
this._ios.dataSource = this._dataSource = DataSource.initWithOwner(new WeakRef(this));
|
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
|
|
||||||
(<any>this._ios).contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this));
|
this._delegate = UITableViewDelegateImpl.initWithOwner(new WeakRef(this));
|
||||||
this._heights = new Array<number>();
|
this._heights = new Array<number>();
|
||||||
this._map = new Map<ListViewCell, View>();
|
this._map = new Map<ListViewCell, View>();
|
||||||
|
|||||||
Reference in New Issue
Block a user