bug #1587: Fix progress bar size in Sunstone when the percentage is over 100%

This commit is contained in:
Daniel Molina committed 2012-11-07 15:53:44 +01:00
1 parent 40c78982d0
commit b4093f2cb8
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
- using two disks:
onevm create --name "test vm" --memory 128 --cpu 1 --disk arch,data
onetempate create --name "test vm" --memory 128 --cpu 1 --disk arch,data
EOT
+2
View File
@@ -1216,6 +1216,8 @@ function quotaListItem(quota_json){
Options: object with width, height, label and fontSize as keys
*/
function progressBar(value, opts){
if (value > 100) value = 100;
if (!opts) opts = {};
if (!opts.width) opts.width = 'auto';