mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed problems with size elements in visual console. ticket: #4096
(cherry picked from commit 59857533263ffbf42ba9532657f1e5494ecbc83a)
This commit is contained in:
parent
134478fc15
commit
83ef2e82ee
pandora_console/include
@ -189,8 +189,8 @@ switch ($action) {
|
||||
case 'get_layout_data':
|
||||
$layoutData = db_get_row_filter('tlayout_data',
|
||||
array('id' => $id_element));
|
||||
$layoutData['height'] = $layoutData['height'] + 60;
|
||||
$layoutData['width'] = $layoutData['width'] + 60;
|
||||
$layoutData['height'] = $layoutData['height'];
|
||||
$layoutData['width'] = $layoutData['width'];
|
||||
echo json_encode($layoutData);
|
||||
break;
|
||||
|
||||
|
@ -95,8 +95,8 @@ function visual_map_print_item($mode = "read", $layoutData,
|
||||
require_once ($config["homedir"] . '/include/functions_custom_graphs.php');
|
||||
|
||||
//add 60 px for visual console map
|
||||
$width = $layoutData['width'] + 60;
|
||||
$height = $layoutData['height'] + 60;
|
||||
$width = $layoutData['width'];
|
||||
$height = $layoutData['height'];
|
||||
$max_percentile = $layoutData['height'];
|
||||
$top = $layoutData['pos_y'];
|
||||
$left = $layoutData['pos_x'];
|
||||
@ -749,6 +749,8 @@ function visual_map_print_item($mode = "read", $layoutData,
|
||||
$percentile = 100;
|
||||
break;
|
||||
case MODULE_GRAPH:
|
||||
$width += 60;
|
||||
$height += 60;
|
||||
if (!empty($proportion)) {
|
||||
$width =
|
||||
((integer)($proportion['proportion_width'] * $width));
|
||||
|
Loading…
x
Reference in New Issue
Block a user