Fixed the visualconsole editor in metaconsole

This commit is contained in:
mdtrooper 2014-09-24 14:36:18 +02:00
parent 610f723d37
commit ff3ce9391b
2 changed files with 12 additions and 2 deletions

View File

@ -72,7 +72,14 @@ function visual_map_main() {
});
//Resize the view to adapt the screen size.
if ($("#main").length) {
//Console
$("#frame_view").height($("#main").height() - 75);
}
else {
//Metaconsole
$("#frame_view").height($("#page").height() - 75);
}
}
function cancel_button_palette_callback() {

View File

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