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:
Vladimir Enchev
2015-05-27 16:47:01 +03:00
parent 346332a227
commit 9238f29556

View File

@@ -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 {