Fix for updating sliders visually when min/max values change.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-09-15 21:39:20 -07:00
parent 7ca50e4d28
commit c752db905d
+8
View File
@@ -83,6 +83,10 @@ CPCircularSlider = 1;
if (doubleValue < _minValue)
[self setDoubleValue:_minValue];
// The relative position may have (did) change.
[self setNeedsLayout];
[self setNeedsDisplay:YES];
}
- (float)minValue
@@ -101,6 +105,10 @@ CPCircularSlider = 1;
if (doubleValue > _maxValue)
[self setDoubleValue:_maxValue];
// The relative position may have (did) change.
[self setNeedsLayout];
[self setNeedsDisplay:YES];
}
- (float)maxValue