]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/choice.cpp
added DoDrawRoundedRectangle() implementation (patch 931364)
[wxWidgets.git] / src / msw / choice.cpp
index b1809f6c04621e46166bbbbca4fddcb1bd8dfcf3..e80ff3b1660d3ea1af5a5cf64c5aecde19611872 100644 (file)
@@ -532,8 +532,7 @@ wxSize wxChoice::DoGetBestSize() const
     // the combobox should be slightly larger than the widest string
     wChoice += 5*GetCharWidth();
 
-    // +5 is magic but seems to work well
-    return wxSize(wChoice, GetCharHeight() + 5);
+    return wxSize(wChoice, EDIT_HEIGHT_FROM_CHAR_HEIGHT(GetCharHeight()));
 }
 
 WXLRESULT wxChoice::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)