Fix the layout of the job status view on OS X (#1005)
authorCarl Hetherington <cth@carlh.net>
Wed, 16 Nov 2016 00:27:40 +0000 (00:27 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 16 Nov 2016 11:19:49 +0000 (11:19 +0000)
src/wx/job_view.cc

index 0734151229044ff12fecba25d6352540d2854ff7..c14734998fd5df9f9a36d7ff7b43f739a242b861 100644 (file)
@@ -93,6 +93,9 @@ JobView::progress ()
        whole += _job->status ();
        if (whole != _last_message) {
                _message->SetLabelMarkup (std_to_wx (whole));
+               /* This hack fixes the size of _message on OS X */
+               _message->InvalidateBestSize ();
+               _message->SetSize (_message->GetBestSize ());
                _gauge_message->Layout ();
                _last_message = whole;
        }