mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
b37d2e7d51
commit
510212e29f
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue