mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed problem with iOS 7 and ListView rowHeight.
This commit is contained in:
@@ -265,7 +265,7 @@ class UINavigationControllerImpl extends UINavigationController implements UINav
|
|||||||
let owner = this._owner.get();
|
let owner = this._owner.get();
|
||||||
if (owner) {
|
if (owner) {
|
||||||
owner.onLoaded();
|
owner.onLoaded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public viewDidLayoutSubviews(): void {
|
public viewDidLayoutSubviews(): void {
|
||||||
@@ -273,7 +273,7 @@ class UINavigationControllerImpl extends UINavigationController implements UINav
|
|||||||
if (owner) {
|
if (owner) {
|
||||||
trace.write(this._owner + " viewDidLayoutSubviews, isLoaded = " + owner.isLoaded, trace.categories.ViewHierarchy);
|
trace.write(this._owner + " viewDidLayoutSubviews, isLoaded = " + owner.isLoaded, trace.categories.ViewHierarchy);
|
||||||
owner._updateLayout();
|
owner._updateLayout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public navigationControllerWillShowViewControllerAnimated(navigationController: UINavigationController, viewController: UIViewController, animated: boolean): void {
|
public navigationControllerWillShowViewControllerAnimated(navigationController: UINavigationController, viewController: UIViewController, animated: boolean): void {
|
||||||
|
|||||||
@@ -160,6 +160,15 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe
|
|||||||
cell.highlighted = false;
|
cell.highlighted = false;
|
||||||
return indexPath;
|
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) {
|
function onSeparatorColorPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user