Fixed a bug in DoGetBestSize that would make wxSpinCtrl too tall
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
243f8ae50a
commit
09f27917fb
@ -525,7 +525,12 @@ wxSize wxSpinCtrl::DoGetBestSize() const
|
||||
wxGetCharSize(GetHWND(), NULL, &y, &GetFont());
|
||||
y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(y);
|
||||
|
||||
if ( sizeBtn.y < y )
|
||||
// JACS: we should always use the height calculated
|
||||
// from above, because otherwise we'll get a spin control
|
||||
// that's too big. So never use the height calculated
|
||||
// from wxSpinButton::DoGetBestSize().
|
||||
|
||||
// if ( sizeBtn.y < y )
|
||||
{
|
||||
// make the text tall enough
|
||||
sizeBtn.y = y;
|
||||
|
Loading…
Reference in New Issue
Block a user