Progressbar: Take min into account when calculating percentage.

This commit is contained in:
Kris Borchers 2012-12-06 11:07:07 -06:00
parent 20a29dfd61
commit b44375aef1

View File

@ -102,7 +102,7 @@ $.widget( "ui.progressbar", {
},
_percentage: function() {
return this.indeterminate ? 100 : 100 * this.options.value / this.options.max;
return this.indeterminate ? 100 : 100 * ( this.options.value - this.min ) / ( this.options.max - this.min );
},
_refreshValue: function() {