mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
fix: suspendRequestLayout not being reset to the right state
This causes unecessary `requestLayout`
This commit is contained in:
@ -1375,7 +1375,7 @@ export const initNativeView = profile('"properties".initNativeView', function in
|
||||
// if the view requestLayout was not suspended before
|
||||
// it means we can request a layout if needed.
|
||||
// will be done after otherwise
|
||||
view.suspendRequestLayout = false;
|
||||
view.suspendRequestLayout = wasSuspended;
|
||||
if (!wasSuspended && view.isLayoutRequestNeeded) {
|
||||
view.requestLayout();
|
||||
}
|
||||
|
Reference in New Issue
Block a user