From 9238f29556bdb719d723dc47263bdf2951301955 Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Wed, 27 May 2015 16:47:01 +0300 Subject: [PATCH] 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; } } --- ui/list-view/list-view.ios.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ui/list-view/list-view.ios.ts b/ui/list-view/list-view.ios.ts index 9c66f83c8..10bcf5201 100644 --- a/ui/list-view/list-view.ios.ts +++ b/ui/list-view/list-view.ios.ts @@ -89,18 +89,6 @@ class UITableViewDelegateImpl extends NSObject implements UITableViewDelegate { if (indexPath.row === this._owner.items.length - 1) { this._owner.notify({ 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 {