Minor optical things.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-02-24 18:09:48 +00:00
parent a368a8c4a8
commit b0e282b34d
5 changed files with 16 additions and 4 deletions

View File

@@ -105,6 +105,8 @@ bool wxSpinCtrl::Create(wxWindow *parent, wxWindowID id,
new_size.x = size_best.x;
if (new_size.y == -1)
new_size.y = size_best.y;
if (new_size.y > size_best.y)
new_size.y = size_best.y;
if ((new_size.x != size.x) || (new_size.y != size.y))
SetSize( new_size.x, new_size.y );