Progressbar: hide valueDiv when value is 0. Fixes #7231 - valueDiv should be hidden when value is at 0%

(cherry picked from commit 3b77ac654b)
This commit is contained in:
Kyle Florence 2011-04-08 16:55:14 -07:00 committed by Richard Worth
parent e388153049
commit 3c13b33682

View File

@ -95,6 +95,7 @@ $.widget( "ui.progressbar", {
} }
this.valueDiv this.valueDiv
.toggle( value > this.min )
.toggleClass( "ui-corner-right", value === this.options.max ) .toggleClass( "ui-corner-right", value === this.options.max )
.width( percentage.toFixed(0) + "%" ); .width( percentage.toFixed(0) + "%" );
this.element.attr( "aria-valuenow", value ); this.element.attr( "aria-valuenow", value );