Progressbar: Style updates

Ref #14246
This commit is contained in:
Alexander Schmitz 2015-08-24 08:58:48 -04:00
parent 5850a5c755
commit 12be35562a
6 changed files with 41 additions and 39 deletions

View File

@ -100,6 +100,7 @@ return $.widget( "ui.progressbar", {
}, },
_setOptions: function( options ) { _setOptions: function( options ) {
// Ensure "value" option is set after other values (like max) // Ensure "value" option is set after other values (like max)
var value = options.value; var value = options.value;
delete options.value; delete options.value;
@ -112,6 +113,7 @@ return $.widget( "ui.progressbar", {
_setOption: function( key, value ) { _setOption: function( key, value ) {
if ( key === "max" ) { if ( key === "max" ) {
// Don't allow a max less than min // Don't allow a max less than min
value = Math.max( this.min, value ); value = Math.max( this.min, value );
} }