X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4395fb21f651f8a08905c34507692ca7f902dfe5..be5a51fb592f3fa2ba38ac6cd1e488d6d806058c:/src/generic/splitter.cpp?ds=sidebyside diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 4269063c1d..1d6a539568 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -801,6 +801,16 @@ void wxSplitterWindow::SetSashPosition(int position, bool redraw) } } +// Make sure the child window sizes are updated. This is useful +// for reducing flicker by updating the sizes before a +// window is shown, if you know the overall size is correct. +void wxSplitterWindow::UpdateSize() +{ + m_checkRequestedSashPosition = true; + SizeWindows(); + m_checkRequestedSashPosition = false; +} + bool wxSplitterWindow::DoSendEvent(wxSplitterEvent& event) { return !GetEventHandler()->ProcessEvent(event) || event.IsAllowed();