minor fix to the constraints of the cancel button to improve its sizing under wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-04 16:33:05 +00:00
parent 86171954ec
commit e269a9be19

View File

@@ -221,16 +221,17 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
#endif // MSW/!MSW #endif // MSW/!MSW
c->bottom.SameAs(this, wxBottom, 2*LAYOUT_Y_MARGIN); c->bottom.SameAs(this, wxBottom, 2*LAYOUT_Y_MARGIN);
wxSize sizeBtn = wxButton::GetDefaultSize(); c->width.AsIs();
c->width.Absolute(sizeBtn.x); c->height.AsIs();
c->height.Absolute(sizeBtn.y);
m_btnAbort->SetConstraints(c); m_btnAbort->SetConstraints(c);
sizeDlg.y += 2*LAYOUT_Y_MARGIN + sizeBtn.y; sizeDlg.y += 2*LAYOUT_Y_MARGIN + wxButton::GetDefaultSize().y;
} }
else else // no "Cancel" button
{
m_btnAbort = (wxButton *)NULL; m_btnAbort = (wxButton *)NULL;
}
SetAutoLayout(TRUE); SetAutoLayout(TRUE);
Layout(); Layout();