chore(ios): removed forced background update during safe area inset calculation (#10767)

This commit is contained in:
Dimitris-Rafail Katsampas
2025-07-20 22:33:53 +03:00
committed by GitHub
parent 0dc8b2ba2a
commit 46d9827960
3 changed files with 2 additions and 17 deletions

View File

@ -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);