From: Francesco Montorsi Date: Thu, 4 Dec 2008 15:37:20 +0000 (+0000) Subject: call Fit() when updating the message label to adapt to longer (or much shorter) labels X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c0b25bb25834a5bc5fa73f67a7e36ef99f362a89 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 --- 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() ; } }