mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +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 boundsOrigin = nativeView.bounds.origin;
|
||||||
const boundsFrame = adjustedFrame || frame;
|
const boundsFrame = adjustedFrame || frame;
|
||||||
nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
|
nativeView.bounds = CGRectMake(boundsOrigin.x, boundsOrigin.y, boundsFrame.size.width, boundsFrame.size.height);
|
||||||
|
nativeView.layoutIfNeeded();
|
||||||
|
|
||||||
this._raiseLayoutChangedEvent();
|
this._raiseLayoutChangedEvent();
|
||||||
this._isLaidOut = true;
|
this._isLaidOut = true;
|
||||||
|
Reference in New Issue
Block a user