From: corredor Date: Fri, 30 Nov 2012 10:49:40 +0000 (+0100) Subject: RaCNov2012 Correct resize of internal panels according to the window X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f24576d12295892699bdae7fd32900139aa118e8;p=bbtk.git RaCNov2012 Correct resize of internal panels according to the window resize event --- diff --git a/packages/wx/src/bbwxLayoutSplit.cxx b/packages/wx/src/bbwxLayoutSplit.cxx index 6b051e6..5454202 100644 --- a/packages/wx/src/bbwxLayoutSplit.cxx +++ b/packages/wx/src/bbwxLayoutSplit.cxx @@ -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 = "<SetSashPosition(pos,true); + //RaC Nov2012 Correctly resize internal panels with the window resize event + win->SetSashGravity(0.5); }