mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Fixed: issue with determinate spinning progressBar annd value not between 0 and 100
This commit is contained in:
1 parent
57b68880db
commit
899bbc2dbc
2 files changed
+5
-2
No files matched your search
@@ -461,7 +461,7 @@ var CPProgressIndicatorSpinningStyleColors = [];
|
||||
{
|
||||
var midX = CGRectGetMidX(rect),
|
||||
midY = CGRectGetMidY(rect),
|
||||
endAngle = Math.PI * 2 * ([self doubleValue] / ([self maxValue] - [self minValue])) - Math.PI / 2,
|
||||
endAngle = Math.PI * 2 * (([self doubleValue] - [self minValue]) / ([self maxValue] - [self minValue])) - Math.PI / 2,
|
||||
radius = MIN(rect.size.width / 2, rect.size.height / 2)
|
||||
|
||||
CGContextBeginPath(context);
|
||||
|
||||
@@ -36,7 +36,10 @@
|
||||
[fiftyPercentBar setDoubleValue:50];
|
||||
[hundredPercentBar setDoubleValue:100];
|
||||
|
||||
[twentyPercentCircular setDoubleValue:20];
|
||||
[twentyPercentCircular setMaxValue:200];
|
||||
[twentyPercentCircular setMinValue:50];
|
||||
[twentyPercentCircular setDoubleValue:80];
|
||||
|
||||
[fiftyPercentCircular setDoubleValue:50];
|
||||
[hundredPercentCircular setDoubleValue:100];
|
||||
|
||||
|
||||
Reference in new issue
Block a user