From c0b25bb25834a5bc5fa73f67a7e36ef99f362a89 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Thu, 4 Dec 2008 15:37:20 +0000 Subject: [PATCH] call Fit() when updating the message label to adapt to longer (or much shorter) labels git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/progdlgg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index ebf5a78e8b..d286409ab9 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -668,6 +668,8 @@ void wxProgressDialog::UpdateMessage(const wxString &newmsg) { m_msg->SetLabel(newmsg); + Fit(); // adapt to the new label size + wxYieldIfNeeded() ; } } -- 2.50.0