From b1680aa8e26f972f9099fb10fd2dfd669390d1b2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 12 May 2016 20:20:39 -0400 Subject: [PATCH] More notes. --- darwin/autolayout.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/darwin/autolayout.m b/darwin/autolayout.m index 6f98faaf..47d77ccb 100644 --- a/darwin/autolayout.m +++ b/darwin/autolayout.m @@ -19,7 +19,8 @@ NSLayoutConstraint *mkConstraint(id view1, NSLayoutAttribute attr1, NSLayoutRela } // this is needed for NSSplitView to work properly; see http://stackoverflow.com/questions/34574478/how-can-i-set-the-position-of-a-nssplitview-nowadays-setpositionofdivideratind (stal in irc.freenode.net/#macdev came up with the exact combination) -// turns out it also works on NSTabView too, possibly others! +// turns out it also works on NSTabView and NSBox too, possibly others! +// and for bonus points, it even seems to fix unsatisfiable-constraint-autoresizing-mask issues with NSTabView and NSBox too!!! this is nuts void jiggleViewLayout(NSView *view) { [view setNeedsLayout:YES];