Skip to content

Commit

Permalink
Progressbar: hide valueDiv when value is 0. Fixes #7231 - valueDiv sh…
Browse files Browse the repository at this point in the history
…ould be hidden when value is at 0%

(cherry picked from commit 3b77ac6)
  • Loading branch information
kflorence authored and rdworth committed Apr 9, 2011
1 parent e388153 commit 3c13b33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.progressbar.js
Expand Up @@ -95,6 +95,7 @@ $.widget( "ui.progressbar", {
}

this.valueDiv
.toggle( value > this.min )
.toggleClass( "ui-corner-right", value === this.options.max )
.width( percentage.toFixed(0) + "%" );
this.element.attr( "aria-valuenow", value );
Expand Down

0 comments on commit 3c13b33

Please sign in to comment.