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
This commit is contained in:
Francesco Montorsi
2010-07-26 10:28:36 +00:00
parent 54f0a3242c
commit 6333ffcca0

View File

@@ -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__