X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2997ca30d66c2dc778ed9a84c8c94fea6ec1c958..19311d4e7c43a3f6243bf805c164fd76cada0386:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index e2a2a3ca99..d39356302c 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -122,7 +122,7 @@ void wxSplitterWindow::Init() m_firstY = 0; m_sashPosition = m_requestedSashPosition = 0; m_sashGravity = 0.0; - m_lastSize = wxSize(); + m_lastSize = wxSize(0,0); m_checkRequestedSashPosition = false; m_minimumPaneSize = 0; m_sashCursorWE = wxCursor(wxCURSOR_SIZEWE); @@ -414,7 +414,7 @@ void wxSplitterWindow::OnSize(wxSizeEvent& event) if ( iconized ) { - m_lastSize = wxSize(); + m_lastSize = wxSize(0,0); event.Skip(); @@ -877,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 //