From: Kris Borchers Date: Thu, 6 Dec 2012 17:07:07 +0000 (-0600) Subject: Progressbar: Take min into account when calculating percentage. X-Git-Tag: 1.10.0-beta.1~33 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b44375aef19f54e1b4ef5caee6c748b6d9058814;p=jquery-ui.git Progressbar: Take min into account when calculating percentage. --- 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() {