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:
parent
f81a662057
commit
2d17a4e2f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user