From 9bb3ef098b957ef9e517a40010acdaa72ea396eb Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Diaz Date: Thu, 24 Sep 2015 10:13:56 +0200 Subject: [PATCH] Fixed view error with box item in visual console. Ticket #2744 --- pandora_console/include/javascript/pandora_visual_console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/javascript/pandora_visual_console.js b/pandora_console/include/javascript/pandora_visual_console.js index 93fc69baba..e56fe94e0c 100755 --- a/pandora_console/include/javascript/pandora_visual_console.js +++ b/pandora_console/include/javascript/pandora_visual_console.js @@ -158,8 +158,8 @@ function draw_user_lines_read() { function center_labels() { jQuery.each($(".item"), function(i, item) { - - if ($(item).width() > $("img", item).width()) { + + if ($(item).width() > $("img", item).width() && ($("img", item).width() != null)) { dif_width = $(item).width() - $("img", item).width(); x = parseInt($(item).css("left"));