git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on main help sign in
Make popoverPadding a configurable property instead of hardcoded hack
commit4e0e66db3e2b6a9ef8d0a107bf1301f571159f17 authorMark <mark.eibes@gmail.com> dateThu 19 Feb 2026, 13:21 (7 months ago) parent69285c1
1 file changed+5
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+5
example-macos/macos/YogaReactExample-macOS/RCTMacOSControlsManager.m+5
@@ -2502,6 +2502,11 @@ RCT_EXPORT_VIEW_PROPERTY(radius, CGFloat)
25022502 _visible = visible;
25032503 if (visible) {
25042504 if (!_popover.isShown && self.window) {
2505+ // Reset children to origin before measuring (centerContent may have shifted them)
2506+ for (NSView *child in _contentContainer.subviews) {
2507+ CGRect cf = child.frame;
2508+ child.frame = CGRectMake(cf.origin.x, 0, cf.size.width, cf.size.height);
2509+ }
25052510 // Measure RN content that Yoga has already laid out
25062511 CGFloat w = _popoverWidth;
25072512 CGFloat h = _popoverHeight;