m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0;
+ // FIXME: with this line the background is not erased at all under GTK1,
+ // so temporary avoid it there
+#if !defined(__WXGTK__) || defined(__WXGTK20__)
// don't erase the splitter background, it's pointless as we overwrite it
// anyhow
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
+#endif
return true;
}
// get best sizes of subwindows
wxSize size1, size2;
if ( m_windowOne )
- size1 = m_windowOne->GetBestSize();
+ size1 = m_windowOne->GetAdjustedBestSize();
if ( m_windowTwo )
- size2 = m_windowTwo->GetBestSize();
+ size2 = m_windowTwo->GetAdjustedBestSize();
// sum them
//