aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.progressbar.js
diff options
context:
space:
mode:
authorKris Borchers <kris.borchers@gmail.com>2012-12-06 11:07:07 -0600
committerKris Borchers <kris.borchers@gmail.com>2012-12-06 11:07:07 -0600
commitb44375aef19f54e1b4ef5caee6c748b6d9058814 (patch)
tree6563da0b456b5d88054ed32a9dd6d64efab32326 /ui/jquery.ui.progressbar.js
parent20a29dfd61f0f632c0d08aa0d1db3057668f3f7c (diff)
downloadjquery-ui-b44375aef19f54e1b4ef5caee6c748b6d9058814.tar.gz
jquery-ui-b44375aef19f54e1b4ef5caee6c748b6d9058814.zip
Progressbar: Take min into account when calculating percentage.
Diffstat (limited to 'ui/jquery.ui.progressbar.js')
-rw-r--r--ui/jquery.ui.progressbar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js
index 46051d2c9..163bb06cd 100644
--- a/ui/jquery.ui.progressbar.js
+++ b/ui/jquery.ui.progressbar.js
@@ -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() {