X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42782237f24807ddb0bae1c84997e29573f5c2df..b0d8bfa6cd4042d3ea8680ad0145f79e3cb15268:/src/os2/slider.cpp

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)
     {