Commit a727e5b262ce6ad051b4277078e101fd219e9ca9
1 parent
e9815b82
Exists in
master
Correção no tamanho das imagens que são obtidas para compor a lista de símbolos no editor de legenda
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
classesphp/classe_legenda.php
... | ... | @@ -594,12 +594,11 @@ class Legenda |
594 | 594 | if ($tipo == 3){ |
595 | 595 | $tipo = 2; |
596 | 596 | } //tipo raster |
597 | - if($imgdir == "") | |
598 | - { | |
597 | + if($imgdir == ""){ | |
599 | 598 | $dir = $dir_tmp; |
600 | 599 | } |
601 | - else | |
602 | - {$dir = $dir_tmp."/".$imgdir; | |
600 | + else{ | |
601 | + $dir = $dir_tmp."/".$imgdir; | |
603 | 602 | } |
604 | 603 | if($forca == true){ |
605 | 604 | unlink($dir."/simbolos".$tipo.".inc"); |
... | ... | @@ -635,7 +634,7 @@ class Legenda |
635 | 634 | //var_dump($lista);exit; |
636 | 635 | $n = count($lista["nomes"]); |
637 | 636 | for($i = 0; $i < $n; $i++){ |
638 | - $ins .= "<img src='".$url."/".$lista["nomes"][$i]."' style='cursor:pointer;border: 5px solid #FFFFFF' title=".$pasta."/".$lista["nomes"][$i]." onclick='".$onclick."'>"; | |
637 | + $ins .= "<img src='".$url."/".$lista["nomes"][$i]."' style='max-width: 80px;cursor:pointer;border: 5px solid #FFFFFF' title=".$pasta."/".$lista["nomes"][$i]." onclick='".$onclick."'>"; | |
639 | 638 | } |
640 | 639 | } |
641 | 640 | } | ... | ... |