diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 366e5ea37b..734ae47c16 100644 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -72,7 +72,14 @@ function visual_map_main() { }); //Resize the view to adapt the screen size. - $("#frame_view").height($("#main").height() - 75); + if ($("#main").length) { + //Console + $("#frame_view").height($("#main").height() - 75); + } + else { + //Metaconsole + $("#frame_view").height($("#page").height() - 75); + } } function cancel_button_palette_callback() { diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index a72ce6dc71..1b86e7586f 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -489,7 +489,10 @@ if ($action == 'new' || $idVisualConsole === false) { $buttons[$activeTab]['active'] = true; if (!defined('METACONSOLE')) { - ui_print_page_header($visualConsoleName, "images/visual_console.png", false, "visual_console_editor_" . $activeTab . "_tab", false, $buttons); + ui_print_page_header($visualConsoleName, + "images/visual_console.png", false, + "visual_console_editor_" . $activeTab . "_tab", false, + $buttons); } //The source code for PAINT THE PAGE