mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Progressbar: Take min into account when calculating percentage.
This commit is contained in:
parent
20a29dfd61
commit
b44375aef1
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user