diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 35b28ded3e..db91be0735 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2014-01-23 Miguel de Dios + + * include/functions_visual_map.php, + include/styles/pandora.css: fixed the font sizes for the visualmaps + embedmed into a dash + + Incident: #537 from local tacker. + 2014-01-23 Miguel de Dios * include/functions_visual_map.php: fixed the links of icons in @@ -28,6 +36,11 @@ graph. Incidents: #536 and #535 from local tracker +2014-01-22 Sergio Martin + + * include/functions_visual_map.php, + include/styles/pandora.css: fixed the font sizes for the visualmaps + embedmed into a dashboard. 2014-01-22 Sergio Martin diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 1d5911bb35..16e2c49525 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -971,6 +971,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line $lines = array (); foreach ($layout_datas as $layout_data) { + if ($resizedMap) { + //Hack to resize the text + $layout_data["label"] = str_replace( + 'visual_font_size', 'resize_visual_font_size', $layout_data["label"]); + } + //Check the items are from disabled or pending delete modules if ($layout_data['id_agente_modulo'] != 0 && (($layout_data['type'] != LABEL) diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 0f42c3f76b..a53dbe729d 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -2482,6 +2482,21 @@ span#plugin_description { .visual_font_size_72pt, .visual_font_size_72pt > em, .visual_font_size_72pt > strong { font-size: 72pt; } +.resize_visual_font_size_8pt, .resize_visual_font_size_8pt > em, .resize_visual_font_size_8pt > strong { + font-size: 4pt; +} +.resize_visual_font_size_14pt, .resize_visual_font_size_14pt > em , .resize_visual_font_size_14pt > strong { + font-size: 7pt; +} +.resize_visual_font_size_24pt, .resize_visual_font_size_24pt > em, .resize_visual_font_size_24pt > strong { + font-size: 12pt; +} +.resize_visual_font_size_36pt, .resize_visual_font_size_36pt > em, .resize_visual_font_size_36pt > strong { + font-size: 18pt; +} +.resize_visual_font_size_72pt, .resize_visual_font_size_72pt > em, .resize_visual_font_size_72pt > strong { + font-size: 36pt; +} /*SIDEBAR*/ .menu_sidebar {