Fixed problem with iOS 7 and ListView rowHeight.

This commit is contained in:
Nedyalko Nikolov
2015-11-13 11:06:51 +02:00
parent 1ebb286091
commit 52c674a510
2 changed files with 11 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ class UINavigationControllerImpl extends UINavigationController implements UINav
let owner = this._owner.get();
if (owner) {
owner.onLoaded();
}
}
}
public viewDidLayoutSubviews(): void {
@@ -273,7 +273,7 @@ class UINavigationControllerImpl extends UINavigationController implements UINav
if (owner) {
trace.write(this._owner + " viewDidLayoutSubviews, isLoaded = " + owner.isLoaded, trace.categories.ViewHierarchy);
owner._updateLayout();
}
}
}
public navigationControllerWillShowViewControllerAnimated(navigationController: UINavigationController, viewController: UIViewController, animated: boolean): void {

View File

@@ -160,6 +160,15 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe
cell.highlighted = false;
return indexPath;
}
public tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number {
let owner = this._owner.get();
if (!owner) {
return DEFAULT_HEIGHT;
}
return owner.rowHeight;
}
}
function onSeparatorColorPropertyChanged(data: dependencyObservable.PropertyChangeData) {