mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
chore(ios): removed forced background update during safe area inset calculation (#10767)
This commit is contained in:

committed by
GitHub

parent
0dc8b2ba2a
commit
46d9827960
@ -77,16 +77,11 @@ export function testBackgroundInternalChangedOnceOnResize() {
|
||||
|
||||
TKUnit.assertEqual(trackCount(), 1, 'Expected background to be re-applied at most once when the view is laid-out on 0 0 200 200.');
|
||||
|
||||
// Ignore safe area as it may result in re-calculating view frame, thus trigger a size change regardless
|
||||
layout.iosIgnoreSafeArea = true;
|
||||
|
||||
layout.requestLayout();
|
||||
layout.layout(50, 50, 250, 250);
|
||||
|
||||
TKUnit.assertEqual(trackCount(), 0, 'Expected background to NOT change when view is laid-out from 0 0 200 200 to 50 50 250 250.');
|
||||
|
||||
layout.iosIgnoreSafeArea = false;
|
||||
|
||||
layout.requestLayout();
|
||||
layout.layout(0, 0, 250, 250);
|
||||
|
||||
|
Reference in New Issue
Block a user