]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/textctrl.cpp
switching to CreateXXX methods for Controls and to Hit Event Processing, thus support...
[wxWidgets.git] / src / univ / textctrl.cpp
index 1538bcefd067d11f4b8217cba74753f77b4f1f89..3111cdf4bdfb74ad8209f0f2023e3fe0d04e79b1 100644 (file)
@@ -2345,7 +2345,7 @@ wxSize wxTextCtrl::DoGetBestClientSize() const
             lines = 5;
         else if ( lines > 10 )
             lines = 10;
-        h *= 10;
+        h *= lines;
     }
 
     wxRect rectText;