From 3c13b33682655be2a2f1c68b45cd500530997c41 Mon Sep 17 00:00:00 2001 From: Kyle Florence Date: Fri, 8 Apr 2011 16:55:14 -0700 Subject: [PATCH] Progressbar: hide valueDiv when value is 0. Fixes #7231 - valueDiv should be hidden when value is at 0% (cherry picked from commit 3b77ac654b079a3098d12cca04d2397bb3863b85) --- ui/jquery.ui.progressbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js index 70c6e025c..1e6352ab8 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/jquery.ui.progressbar.js @@ -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 ); -- 2.39.5