Skip to content

Commit b44375a

Browse files
committed
Progressbar: Take min into account when calculating percentage.
1 parent 20a29df commit b44375a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.progressbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $.widget( "ui.progressbar", {
102102
},
103103

104104
_percentage: function() {
105-
return this.indeterminate ? 100 : 100 * this.options.value / this.options.max;
105+
return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
106106
},
107107

108108
_refreshValue: function() {

0 commit comments

Comments
 (0)