]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar: Take min into account when calculating percentage.
authorKris Borchers <kris.borchers@gmail.com>
Thu, 6 Dec 2012 17:07:07 +0000 (11:07 -0600)
committerKris Borchers <kris.borchers@gmail.com>
Thu, 6 Dec 2012 17:07:07 +0000 (11:07 -0600)
ui/jquery.ui.progressbar.js

index 46051d2c927167835c4f38c79115926bca7fb595..163bb06cd0fc013fc8fbd8e9f226325cc378d54d 100644 (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() {