mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Fix for updating sliders visually when min/max values change.
Reviewed by me.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user