Merge pull request #214 from NativeScript/list-view-separator-inset

ios list-view separator inset set to zero by default
This commit is contained in:
Vladimir Enchev
2015-03-23 11:26:16 +02:00

View File

@@ -89,6 +89,18 @@ 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 {