From e1366cdb2a2c3fdbce35d6ef3207d01c288c8bfa Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 26 Jun 2004 17:29:43 +0000 Subject: [PATCH] fixed sash dragging after programatically trying to set sashpos < minsize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/splitter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index a67ff0fcd4..22c09bc9ff 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -582,6 +582,12 @@ bool wxSplitterWindow::DoSetSashPosition(int sashPos) void wxSplitterWindow::SetSashPositionAndNotify(int sashPos) { + // we must reset the request here, otherwise the sash would be stuck at + // old position if the user attempted to move the sash after invalid + // (e.g. smaller than minsize) sash position was requested using + // SetSashPosition(): + m_requestedSashPosition = INT_MAX; + if ( DoSetSashPosition(sashPos) ) { wxSplitterEvent event(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, this); -- 2.45.2