From 56cd05b6467bc83f01326d4ffe630b9fb92b0572 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 7 Jul 2015 05:47:46 -0700 Subject: [PATCH] The UIProgressView is somehow not doing layout :(. --- src/osx/iphone/gauge.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/iphone/gauge.mm b/src/osx/iphone/gauge.mm index 7ea73e294a..fc570ddb4e 100644 --- a/src/osx/iphone/gauge.mm +++ b/src/osx/iphone/gauge.mm @@ -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() -- 2.45.2