]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/datectrl.cpp
Do a little less anti-alias so it looks better on dark backgrounds
[wxWidgets.git] / src / msw / datectrl.cpp
index 4b6c8c6e61ec9d6179b43f632145882bacb828cf..7f00c820f5910f082519d1015b7ddc759522c4a7 100644 (file)
@@ -180,7 +180,9 @@ wxSize wxDatePickerCtrl::DoGetBestSize() const
 {
     const int y = GetCharHeight();
 
-    return wxSize(DEFAULT_ITEM_WIDTH, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y));
+    wxSize best(DEFAULT_ITEM_WIDTH, EDIT_HEIGHT_FROM_CHAR_HEIGHT(y));
+    CacheBestSize(best);
+    return best;
 }
 
 // ----------------------------------------------------------------------------