mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(ios): force layout of view when changing the safe area insets (#9773)
This commit is contained in:

committed by
Nathan Walker

parent
e59f3ff669
commit
a1ba1f6d03
@ -197,6 +197,7 @@ export class View extends ViewCommon implements ViewDefinition {
|
||||
const boundsOrigin = nativeView.bounds.origin;
|
||||
const boundsFrame = adjustedFrame || frame;
|
||||
nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
|
||||
nativeView.layoutIfNeeded();
|
||||
|
||||
this._raiseLayoutChangedEvent();
|
||||
this._isLaidOut = true;
|
||||
|
Reference in New Issue
Block a user