2012-08-23 Sergio Martin <sergio.martin@artica.es>

* include/functions_visual_map.php
	godmode/reporting/visual_console_builder.editor.php: Center the visual 
	map in both visual console views (edit & view)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6907 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2012-08-23 10:45:38 +00:00
parent 9f381d9ed0
commit e275a8d68e
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-08-23 Sergio Martin <sergio.martin@artica.es>
* include/functions_visual_map.php
godmode/reporting/visual_console_builder.editor.php: Center the visual
map in both visual console views (edit & view)
2012-08-22 Miguel de Dios <miguel.dedios@artica.es>
* include/api.php: cleaned source code style.

View File

@ -44,7 +44,7 @@ visual_map_editor_print_item_palette($visualConsole['id'], $background);
echo '<div id="frame_view" style="width: 100%; height: 500px; overflow: scroll;">';
echo '<div id="background" class="" style="
border: 2px black solid; width: ' . $widthBackground . 'px; height: ' . $heightBackground . 'px;">';
margin: 0px auto;border: 2px black solid; width: ' . $widthBackground . 'px; height: ' . $heightBackground . 'px;">';
echo "<div id='background_grid'
style='position: absolute; display: none; overflow: hidden;
background: url(images/console/background/white_boxed.jpg);

View File

@ -774,7 +774,7 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
}
echo '<div id="layout_map"
style="z-index: 0; position:relative; width:'.$mapWidth.'px; height:'.$mapHeight.'px;">';
style="margin:0px auto;text-align:center;z-index: 0; position:relative; width:'.$mapWidth.'px; height:'.$mapHeight.'px;">';
echo "<img src='" . $backgroundImage . "' width='100%' height='100%' />";
$layout_datas = db_get_all_rows_field_filter ('tlayout_data', 'id_layout', $id_layout);
if (empty($layout_datas))