diff options
author | Kris Borchers <kris.borchers@gmail.com> | 2012-12-06 11:07:07 -0600 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2012-12-06 11:07:07 -0600 |
commit | b44375aef19f54e1b4ef5caee6c748b6d9058814 (patch) | |
tree | 6563da0b456b5d88054ed32a9dd6d64efab32326 /ui | |
parent | 20a29dfd61f0f632c0d08aa0d1db3057668f3f7c (diff) | |
download | jquery-ui-b44375aef19f54e1b4ef5caee6c748b6d9058814.tar.gz jquery-ui-b44375aef19f54e1b4ef5caee6c748b6d9058814.zip |
Progressbar: Take min into account when calculating percentage.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.progressbar.js | 2 |
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() { |