Defer relayout during active layout to prevent recursion; add inLayout and setNeedsLayoutSafe
- UIKit: track inLayout and wrap layoutText() with it; add setNeedsLayoutSafe() to queue relayout via needsRelayout when called during layout. - AppKit: when updating text container size inside a layout pass, set needsRelayout instead of triggering immediate layout.
M
Marcin Krzyzanowski committed
a3d4183776ddb00fc59801e066cf1c7657d36410
Parent: 4594700