X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a09cd1895ece68cbc4562cbc6aa104affb6071f8..19311d4e7c43a3f6243bf805c164fd76cada0386:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 6052fd67d8..d39356302c 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -96,9 +96,13 @@ bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id, 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; } @@ -873,9 +877,9 @@ wxSize wxSplitterWindow::DoGetBestSize() const // 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 //