Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17676] Added call to iOS api to reset separator insets #6091

Merged
merged 4 commits into from
Oct 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions iphone/Classes/TiUIListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ - (UITableView *)tableView
if ([TiUtils isIOS7OrGreater]) {
_defaultSeparatorInsets = [_tableView separatorInset];
}

if ([TiUtils isIOS8OrGreater]) {
[_tableView setLayoutMargins:UIEdgeInsetsZero];
}

}
if ([_tableView superview] != self) {
[self addSubview:_tableView];
Expand Down Expand Up @@ -1234,6 +1239,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
[cellProxy unarchiveFromTemplate:template];
}
}

if ([TiUtils isIOS8OrGreater] && (tableView == _tableView)) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}

[cellProxy release];
[cell autorelease];
}
Expand Down
10 changes: 9 additions & 1 deletion iphone/Classes/TiUITableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ -(UITableView*)tableView
if ([TiUtils isIOS7OrGreater]) {
defaultSeparatorInsets = [tableview separatorInset];
}

if ([TiUtils isIOS8OrGreater]) {
[tableview setLayoutMargins:UIEdgeInsetsZero];
}
}
if ([tableview superview] != self)
{
Expand Down Expand Up @@ -2059,7 +2063,11 @@ - (UITableViewCell *)tableView:(UITableView *)ourTableView cellForRowAtIndexPath
[(TiUITableViewCell*)cell setProxy:row];
[row setCallbackCell:(TiUITableViewCell*)cell];
}
[row initializeTableViewCell:cell];
[row initializeTableViewCell:cell];

if ([TiUtils isIOS8OrGreater] && (tableview == ourTableView)) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}

return cell;
}
Expand Down