mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Center texts
This commit is contained in:
parent
8f4cd81ac5
commit
d298ba4d40
@ -110,13 +110,11 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$border_color = $layoutData['border_color'];
|
$border_color = $layoutData['border_color'];
|
||||||
$fill_color = $layoutData['fill_color'];
|
$fill_color = $layoutData['fill_color'];
|
||||||
$label_position = $layoutData['label_position'];
|
$label_position = $layoutData['label_position'];
|
||||||
|
|
||||||
$sizeStyle = '';
|
$sizeStyle = '';
|
||||||
$borderStyle = '';
|
$borderStyle = '';
|
||||||
$imageSize = '';
|
$imageSize = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!empty($proportion)) {
|
if (!empty($proportion)) {
|
||||||
$top = $top * $proportion['proportion_height'];
|
$top = $top * $proportion['proportion_height'];
|
||||||
$left = $left * $proportion['proportion_width'];
|
$left = $left * $proportion['proportion_width'];
|
||||||
@ -202,7 +200,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$text = '<table style="float:right;height:'.$himg.'px;"><tr><td></td></tr><tr><td><span style="" id="text_' . $id . '" class="text">' . $label .'</span></td></tr><tr><td></td></tr></table>';
|
$text = '<table style="float:right;height:'.$himg.'px;"><tr><td></td></tr><tr><td><span style="" id="text_' . $id . '" class="text">' . $label .'</span></td></tr><tr><td></td></tr></table>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$text = '<table style="width:'.$wimg.'px;"><tr><td></td></tr><tr><td><span style="" id="text_' . $id . '" class="text">' . $label .'</span></td></tr><tr><td></td></tr></table>';
|
$text = '<table style="text-align:center ;width:'.$wimg.'px;"><tr><td></td></tr><tr><td><span style="" id="text_' . $id . '" class="text">' . $label .'</span></td></tr><tr><td></td></tr></table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user