Prevent splitter sash being set below minimum size when moved
(using the same minimum size for both windows is probably a bad design choice) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -614,7 +614,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