mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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:
parent
e388153049
commit
3c13b33682
1
ui/jquery.ui.progressbar.js
vendored
1
ui/jquery.ui.progressbar.js
vendored
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user