]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
Don't always maximize top-level windows on Smartphone
[wxWidgets.git] / src / gtk / gauge.cpp
index 90aad2ca5b65d2f46491baef58f2bf65d6da0986..985c42bcc3dcd148f6cb3ca79fd30fcf38773eea 100644 (file)
@@ -72,10 +72,13 @@ void wxGauge::DoSetGauge()
 
 wxSize wxGauge::DoGetBestSize() const
 {
+    wxSize best;
     if (HasFlag(wxGA_VERTICAL))
-        return wxSize(28, 100);
+        best = wxSize(28, 100);
     else
-        return wxSize(100, 28);
+        best = wxSize(100, 28);
+    CacheBestSize(best);
+    return best;
 }
 
 void wxGauge::SetRange( int range )