1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00

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

This commit is contained in:
Daniel Molina 2012-11-07 15:53:44 +01:00
parent 40c78982d0
commit b4093f2cb8
2 changed files with 3 additions and 1 deletions
src
cli
sunstone/public/js

@ -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

@ -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';