slightly more intelligent size calculation to prevent clipping of text

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-06-25 14:02:28 +00:00
parent f81a662057
commit 2d17a4e2f1

View File

@ -114,7 +114,8 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
Fit();
// and set the width from it
wxSize size = GetClientSize();
SetClientSize(2*size.y, size.y);
if(size.x < 2*size.y)
SetClientSize(2*size.y, size.y);
Show(TRUE);
Centre(wxCENTER_FRAME | wxBOTH);