From 09eebae18208d642ad1ce419b5f5164003eec233 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Mar 2014 14:21:51 +0000 Subject: [PATCH] Add margin to the right of the message in wxGenericProgressDialog. For some reason the border was used only on the left side but not on the right one, resulting in the ugly looking label flush to the right dialog border if it was long enough. Closes #16094. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/progdlgg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 7b6fd4701b..a036308435 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -201,7 +201,7 @@ bool wxGenericProgressDialog::Create( const wxString& title, wxSizer * const sizerTop = new wxBoxSizer(wxVERTICAL); m_msg = new wxStaticText(this, wxID_ANY, message); - sizerTop->Add(m_msg, 0, wxLEFT | wxTOP, 2*LAYOUT_MARGIN); + sizerTop->Add(m_msg, 0, wxLEFT | wxRIGHT | wxTOP, 2*LAYOUT_MARGIN); int gauge_style = wxGA_HORIZONTAL; if ( style & wxPD_SMOOTH )