Be sure to adjust subviews before setting divider position

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38612 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2015-06-10 22:57:19 +00:00
parent b37d2e7d51
commit 510212e29f
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-06-10 Doug Simons <doug.simons@testplant.com>
* Source/NSSplitView.m: Be sure to adjust subviews before setting
divider position. Otherwise, adjustSubviews will wipe out the setting.
2015-04-20 Doug Simons <doug.simons@testplant.com>
* Source/NSPopUpButtonCell.m: Ignore altersStateOfSelectedItem for

View file

@ -1123,6 +1123,11 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
{
return;
}
if (_never_displayed_before == YES) // be sure to adjust subviews before repositioning the divider
{
_never_displayed_before = NO;
[self _adjustSubviews: _frame.size];
}
if (_delegate &&
[_delegate respondsToSelector: