mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Progressbar: Take min into account when calculating percentage.
This commit is contained in:
2
ui/jquery.ui.progressbar.js
vendored
2
ui/jquery.ui.progressbar.js
vendored
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user