]> git.saurik.com Git - wxWidgets.git/commitdiff
The UIProgressView is somehow not doing layout :(.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Jul 2015 12:47:46 +0000 (05:47 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Jul 2015 12:47:46 +0000 (05:47 -0700)
src/osx/iphone/gauge.mm

index 7ea73e294a7b7a0caa5140efd5f089b59cb2920a..fc570ddb4e77c49dda6f63910f4e26267f8b6132 100644 (file)
@@ -49,6 +49,7 @@ public :
         wxGauge* wxpeer = (wxGauge*) GetWXPeer();
         SetDeterminateMode();
         [v setProgress:(float) wxpeer->GetValue() / m];
+        [v setNeedsLayout];
     }
 
     void SetValue(wxInt32 n)
@@ -57,6 +58,7 @@ public :
         wxGauge* wxpeer = (wxGauge*) GetWXPeer();
         SetDeterminateMode();
         [v setProgress:(float) n / wxpeer->GetRange()];
+        [v setNeedsLayout];
     }
 
     void PulseGauge()