]> git.saurik.com Git - wxWidgets.git/commitdiff
Cache slider size in DoSetSize.
authorStefan Neis <Stefan.Neis@t-online.de>
Wed, 4 Jan 2006 22:49:55 +0000 (22:49 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Wed, 4 Jan 2006 22:49:55 +0000 (22:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/slider.cpp

index 57f0e770c24a081ab4181a40bfc9b3740426d9c1..eba1df64c6d9d5b7b9ca2b331e48c5b77c104642 100644 (file)
@@ -495,6 +495,7 @@ void wxSlider::DoSetSize(
 
     if (nOS2Height < 0)
         nOS2Height = 20;
+    CacheBestSize(wxSize(nWidth,nOS2Height));
 
     if (pParent)
     {