dirty fix for the initial splitter position waiting for Vaclav's better one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
df2f507bee
commit
f80aa2dee1
@ -697,7 +697,9 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const
|
||||
{
|
||||
int window_size = GetWindowSize();
|
||||
|
||||
if ( !window_size )
|
||||
// VZ: dirty fix, 20 is the initial window size under wxGTK, this is
|
||||
// going to be replaced with the correct Vaclav's code soon (FIXME)
|
||||
if ( window_size <= 20 )
|
||||
{
|
||||
// don't do anything before the window has a valid size, otherwise we
|
||||
// put the sash to 0 at the very beginning and it doesn't move from
|
||||
|
Loading…
Reference in New Issue
Block a user