m_firstY = 0;
m_sashPosition = m_requestedSashPosition = 0;
m_sashGravity = 0.0;
- m_lastSize = wxSize();
+ m_sashSize = -1; // -1 means use the native sash size
+ m_lastSize = wxSize(0,0);
m_checkRequestedSashPosition = false;
m_minimumPaneSize = 0;
m_sashCursorWE = wxCursor(wxCURSOR_SIZEWE);
if ( iconized )
{
- m_lastSize = wxSize();
+ m_lastSize = wxSize(0,0);
event.Skip();
int wxSplitterWindow::GetSashSize() const
{
- return wxRendererNative::Get().GetSplitterParams(this).widthSash;
+ return m_sashSize > -1 ? m_sashSize : wxRendererNative::Get().GetSplitterParams(this).widthSash;
}
int wxSplitterWindow::GetBorderSize() 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
//