From 6333ffcca027caa11a18560219a3f8a3b97e59b8 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 26 Jul 2010 10:28:36 +0000 Subject: [PATCH] add a spacer in case the progress dialog is built without labels (elapsed/estimated/remaining) time nor buttons git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/progdlgg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 3c962a0f2e..7e0e373f09 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -245,6 +245,9 @@ wxProgressDialog::wxProgressDialog(const wxString& title, buttonSizer->Add(m_btnAbort, 0, sizerFlags, LAYOUT_MARGIN); } + if (!m_hasSkipButton && !m_hasAbortButton) + buttonSizer->AddSpacer(LAYOUT_MARGIN); + sizerTop->Add(buttonSizer, 0, sizerFlags, LAYOUT_MARGIN ); #endif // __SMARTPHONE__/!__SMARTPHONE__ -- 2.50.0