mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(ios): not responding after rotation (#9931)
This commit is contained in:
@@ -37,8 +37,7 @@ class UILayoutViewController extends UIViewController {
|
||||
}
|
||||
}
|
||||
|
||||
public viewDidLayoutSubviews(): void {
|
||||
super.viewDidLayoutSubviews();
|
||||
private updateAdditionalSafeAreaInsetsIfNeeded(): void {
|
||||
const owner = this.owner.get();
|
||||
if (owner) {
|
||||
if (majorVersion >= 11) {
|
||||
@@ -77,7 +76,18 @@ class UILayoutViewController extends UIViewController {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public viewSafeAreaInsetsDidChange(): void {
|
||||
super.viewSafeAreaInsetsDidChange();
|
||||
this.updateAdditionalSafeAreaInsetsIfNeeded();
|
||||
}
|
||||
|
||||
public viewDidLayoutSubviews(): void {
|
||||
super.viewDidLayoutSubviews();
|
||||
const owner = this.owner.get();
|
||||
if (owner) {
|
||||
IOSHelper.layoutView(this, owner);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user