mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 23:13:04 +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
|
// if the view requestLayout was not suspended before
|
||||||
// it means we can request a layout if needed.
|
// it means we can request a layout if needed.
|
||||||
// will be done after otherwise
|
// will be done after otherwise
|
||||||
view.suspendRequestLayout = false;
|
view.suspendRequestLayout = wasSuspended;
|
||||||
if (!wasSuspended && view.isLayoutRequestNeeded) {
|
if (!wasSuspended && view.isLayoutRequestNeeded) {
|
||||||
view.requestLayout();
|
view.requestLayout();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user