X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a96ca3a4500587c107feee5cc20a5ed5f5e7a7e..e11898f903183f897a2b2a50a4447ea73ba7273f:/src/generic/splitter.cpp?ds=inline diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 93eb320d0a..11ab7e9734 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -567,7 +567,7 @@ int wxSplitterWindow::AdjustSashPosition(int sashPos) const if ( minSize == -1 || m_minimumPaneSize > minSize ) minSize = m_minimumPaneSize; - int maxSize = window_size - minSize - GetBorderSize(); + int maxSize = window_size - minSize - GetBorderSize() - GetSashSize(); if ( sashPos > maxSize ) sashPos = maxSize; }