X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d394825d697b56ecd4d21ef534b2bb5abcad87f4..e11898f903183f897a2b2a50a4447ea73ba7273f:/src/generic/splitter.cpp diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index bbdaad1e6a..11ab7e9734 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -36,6 +36,10 @@ #include "wx/settings.h" #endif +#ifdef __WXMAC__ + #include "wx/mac/private.h" +#endif + #include "wx/renderer.h" #include "wx/splitter.h" @@ -563,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; }