if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
return false;
m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
// FIXME: with this line the background is not erased at all under GTK1,
m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
// FIXME: with this line the background is not erased at all under GTK1,
- int maxSize = window_size - minSize - GetBorderSize() - GetSashSize();
- if ( sashPos > maxSize )
+ int maxSize = GetWindowSize() - minSize - GetBorderSize() - GetSashSize();
+ if ( maxSize > 0 && sashPos > maxSize )
GetWindow2()->SetSize(x2, y2, w2, h2);
GetWindow2()->SetSize(x2, y2, w2, h2);