Prevent the splitter sash being set smaller than minimum size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -612,7 +612,7 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const
|
||||
minSize = m_minimumPaneSize;
|
||||
|
||||
int maxSize = GetWindowSize() - minSize - GetBorderSize() - GetSashSize();
|
||||
if ( maxSize > 0 && sashPos > maxSize )
|
||||
if ( maxSize > 0 && sashPos > maxSize && maxSize >= m_minimumPaneSize)
|
||||
sashPos = maxSize;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user