mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch '90-static-graph-se-redimensionan-en-consolas-visuales' into 'develop'
Use original size for elements smaller than 70 in render and viewer vconsole - #90 See merge request !237
This commit is contained in:
commit
f9e52343df
@ -1182,17 +1182,28 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
else if($layoutData['label_position']=='right'){
|
else if($layoutData['label_position']=='right'){
|
||||||
$imgpos = 'float:left';
|
$imgpos = 'float:left';
|
||||||
}
|
}
|
||||||
|
$varsize = getimagesize($img);
|
||||||
if ($width == 0 || $height == 0)
|
if ($width == 0 || $height == 0) {
|
||||||
echo html_print_image($img, true,
|
if($varsize[0] > 150 || $varsize[1] > 150){
|
||||||
array("class" => "image",
|
echo html_print_image($img, true,
|
||||||
|
array("class" => "image",
|
||||||
"id" => "image_" . $id,
|
"id" => "image_" . $id,
|
||||||
"width" => "70px",
|
"width" => "70px",
|
||||||
"height" => "70px",
|
"height" => "70px",
|
||||||
"title" => $img_style_title,
|
"title" => $img_style_title,
|
||||||
"style" => $borderStyle.$imgpos), false,
|
"style" => $borderStyle.$imgpos), false,
|
||||||
false, false, $isExternalLink);
|
false, false, $isExternalLink);
|
||||||
else
|
}
|
||||||
|
else{
|
||||||
|
echo html_print_image($img, true,
|
||||||
|
array("class" => "image",
|
||||||
|
"id" => "image_" . $id,
|
||||||
|
"title" => $img_style_title,
|
||||||
|
"style" => $borderStyle.$imgpos), false,
|
||||||
|
false, false, $isExternalLink);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
echo html_print_image($img, true,
|
echo html_print_image($img, true,
|
||||||
array("class" => "image",
|
array("class" => "image",
|
||||||
"id" => "image_" . $id,
|
"id" => "image_" . $id,
|
||||||
@ -1201,6 +1212,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
"title" => $img_style_title,
|
"title" => $img_style_title,
|
||||||
"style" => $borderStyle.$imgpos), false,
|
"style" => $borderStyle.$imgpos), false,
|
||||||
false, false, $isExternalLink);
|
false, false, $isExternalLink);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1466,18 +1478,30 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($width != 0) && ($height != 0))
|
$varsize = getimagesize($img);
|
||||||
|
if (($width != 0) && ($height != 0)){
|
||||||
echo html_print_image($img, true,
|
echo html_print_image($img, true,
|
||||||
array("class" => "image",
|
array("class" => "image",
|
||||||
"id" => "image_" . $id,
|
"id" => "image_" . $id,
|
||||||
"width" => "$width",
|
"width" => "$width",
|
||||||
"height" => "$height"), false,
|
"height" => "$height"), false,
|
||||||
false, false, $isExternalLink);
|
false, false, $isExternalLink);
|
||||||
else
|
}
|
||||||
|
else{
|
||||||
|
if($varsize[0] > 150 || $varsize[0] > 150){
|
||||||
echo html_print_image($img, true,
|
echo html_print_image($img, true,
|
||||||
array("class" => "image", "id" => "image_" . $id,"width" => "70px",
|
array("class" => "image", "id" => "image_" . $id,"width" => "70px",
|
||||||
"70px" => "$height"),
|
"70px" => "$height"),
|
||||||
false, false, false, $isExternalLink);
|
false, false, false, $isExternalLink);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
echo html_print_image($img, true,
|
||||||
|
array("class" => "image",
|
||||||
|
"id" => "image_" . $id), false,
|
||||||
|
false, false, $isExternalLink);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user