Author: dpsimons
Date: Thu Jun 11 00:57:19 2015
New Revision: 38612

URL: http://svn.gna.org/viewcvs/gnustep?rev=38612&view=rev
Log:
Be sure to adjust subviews before setting divider position

Modified:
    libs/gui/branches/gnustep_testplant_branch/ChangeLog
    libs/gui/branches/gnustep_testplant_branch/Source/NSSplitView.m

Modified: libs/gui/branches/gnustep_testplant_branch/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/ChangeLog?rev=38612&r1=38611&r2=38612&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/ChangeLog        (original)
+++ libs/gui/branches/gnustep_testplant_branch/ChangeLog        Thu Jun 11 
00:57:19 2015
@@ -1,3 +1,8 @@
+2015-06-10  Doug Simons <[email protected]>
+
+       * Source/NSSplitView.m: Be sure to adjust subviews before setting
+       divider position. Otherwise, adjustSubviews will wipe out the setting.
+       
 2015-04-20  Doug Simons <[email protected]>
 
        * Source/NSPopUpButtonCell.m: Ignore altersStateOfSelectedItem for

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSSplitView.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSSplitView.m?rev=38612&r1=38611&r2=38612&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSSplitView.m     
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSSplitView.m     Thu Jun 
11 00:57:19 2015
@@ -1123,6 +1123,11 @@
     {
       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: 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to