]> Creatis software - bbtk.git/commitdiff
RaCNov2012 Correct resize of internal panels according to the window
authorcorredor <Ricardo.Corredor@creatis.insa-lyon.fr>
Fri, 30 Nov 2012 10:49:40 +0000 (11:49 +0100)
committercorredor <Ricardo.Corredor@creatis.insa-lyon.fr>
Fri, 30 Nov 2012 10:49:40 +0000 (11:49 +0100)
resize event

packages/wx/src/bbwxLayoutSplit.cxx

index 6b051e6f93bfd5b39fcb49a3b79e7ab13b17a518..545420241d418e39938c7c96274a7c3924e30849 100644 (file)
@@ -85,6 +85,8 @@ namespace bbwx
                                               wxSP_LIVE_UPDATE );
     w->SetName( bbtk::std2wx( bbGetInputWinTitle() ) );
        w->SetMinimumPaneSize(2);
+       //RaC Nov2012 Correctly resize internal panels with the window resize event
+       w->SetSashGravity(0.5);
 /*
          wxWindow* w1 = bbGetInputWidget1();
     wxWindow* w2 = bbGetInputWidget2();
@@ -143,6 +145,8 @@ namespace bbwx
     //    std::cout << "pos = "<<pos<<std::endl;
   
     win->SetSashPosition(pos,true);
+    //RaC Nov2012 Correctly resize internal panels with the window resize event
+    win->SetSashGravity(0.5);
 
   }