]> git.saurik.com Git - wxWidgets.git/commitdiff
Improved year control of generic calendar being too narrow when using a locale with...
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 17 Apr 2011 21:46:22 +0000 (21:46 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 17 Apr 2011 21:46:22 +0000 (21:46 +0000)
See #11444.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrlg.cpp

index 1b67512a0271f77348fb979b395e143a760eeccd..5a66eb2471e0d877b47c82517915d1e976e28a98 100644 (file)
@@ -705,7 +705,7 @@ wxSize wxGenericCalendarCtrl::DoGetBestSize() const
         width += 25;
 #endif
 
         width += 25;
 #endif
 
-        wxCoord w2 = bestSizeCombo.x + HORZ_MARGIN + GetCharWidth()*6;
+        wxCoord w2 = bestSizeCombo.x + HORZ_MARGIN + GetCharWidth()*8;
         if ( width < w2 )
             width = w2;
     }
         if ( width < w2 )
             width = w2;
     }