From b44375aef19f54e1b4ef5caee6c748b6d9058814 Mon Sep 17 00:00:00 2001 From: Kris Borchers Date: Thu, 6 Dec 2012 11:07:07 -0600 Subject: Progressbar: Take min into account when calculating percentage. --- ui/jquery.ui.progressbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') 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() { -- cgit v1.2.3