From: Stefan Neis Date: Wed, 4 Jan 2006 22:49:55 +0000 (+0000) Subject: Cache slider size in DoSetSize. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3a339c0dfd765bb5ae570d5b6ffaab6b6c142d50 Cache slider size in DoSetSize. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36685 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/slider.cpp b/src/os2/slider.cpp index 57f0e770c2..eba1df64c6 100644 --- a/src/os2/slider.cpp +++ b/src/os2/slider.cpp @@ -495,6 +495,7 @@ void wxSlider::DoSetSize( if (nOS2Height < 0) nOS2Height = 20; + CacheBestSize(wxSize(nWidth,nOS2Height)); if (pParent) {