]> git.saurik.com Git - wxWidgets.git/commitdiff
call Fit() when updating the message label to adapt to longer (or much shorter) labels
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 4 Dec 2008 15:37:20 +0000 (15:37 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 4 Dec 2008 15:37:20 +0000 (15:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/progdlgg.cpp

index ebf5a78e8b1e4c842320805eac9efd5e37eb5289..d286409ab9b44e9c93ef7434631bc33893a52e86 100644 (file)
@@ -668,6 +668,8 @@ void wxProgressDialog::UpdateMessage(const wxString &newmsg)
     {
         m_msg->SetLabel(newmsg);
 
+        Fit();   // adapt to the new label size
+
         wxYieldIfNeeded() ;
     }
 }