mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
separator is no longer forced to the edge
Use this code in ListView.itemLoading event if you want to control the
inset:
function listViewItemLoading(args) {
if (args.ios) {
args.ios.separatorInset = UIEdgeInsetsZero;
args.ios.preservesSuperviewLayoutMargins = false;
args.ios.layoutMargins = UIEdgeInsetsZero;
}
}
This commit is contained in:
@@ -89,18 +89,6 @@ class UITableViewDelegateImpl extends NSObject implements UITableViewDelegate {
|
||||
if (indexPath.row === this._owner.items.length - 1) {
|
||||
this._owner.notify(<observable.EventData>{ eventName: LOADMOREITEMS, object: this._owner });
|
||||
}
|
||||
|
||||
if (cell.separatorInset) {
|
||||
cell.separatorInset = UIEdgeInsetsZero;
|
||||
}
|
||||
|
||||
if (cell.preservesSuperviewLayoutMargins) {
|
||||
cell.preservesSuperviewLayoutMargins = false;
|
||||
}
|
||||
|
||||
if (cell.layoutMargins) {
|
||||
cell.layoutMargins = UIEdgeInsetsZero;
|
||||
}
|
||||
}
|
||||
|
||||
public tableViewWillSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath {
|
||||
|
||||
Reference in New Issue
Block a user