Commit ffb0184ddad915e55cf15e93969970b074ccc209
1 parent
827e5a9f
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
34 additions
and
8 deletions
Show diff stats
classesjs/classe_guias.js
| @@ -974,11 +974,39 @@ i3GEO.guias = | @@ -974,11 +974,39 @@ i3GEO.guias = | ||
| 974 | * estilo alterado para none, tornando-se invisíveis | 974 | * estilo alterado para none, tornando-se invisíveis |
| 975 | * | 975 | * |
| 976 | */ | 976 | */ |
| 977 | + ajustaGuiaFerramenta : function(idjanela,namespace){ | ||
| 978 | + var c = $i("i3GEOF.legenda_corpo"), | ||
| 979 | + h, | ||
| 980 | + g, | ||
| 981 | + temp; | ||
| 982 | + | ||
| 983 | + c.style.overflow = "unset"; | ||
| 984 | + c.style.overflow = "none"; | ||
| 985 | + | ||
| 986 | + h = c.style.height; | ||
| 987 | + h = parseInt(h,10) - 40 + "px"; | ||
| 988 | + for (g = 0; g < 12; g++) { | ||
| 989 | + temp = $i(namespace | ||
| 990 | + + "guia" | ||
| 991 | + + g | ||
| 992 | + + "obj"); | ||
| 993 | + if(temp){ | ||
| 994 | + temp.style.height = h; | ||
| 995 | + temp.style.width = "100%"; | ||
| 996 | + temp.style.overflow = "auto"; | ||
| 997 | + } | ||
| 998 | + } | ||
| 999 | + }, | ||
| 977 | mostraGuiaFerramenta : function(guia, namespace) { | 1000 | mostraGuiaFerramenta : function(guia, namespace) { |
| 978 | var g, Dom = YAHOO.util.Dom; | 1001 | var g, Dom = YAHOO.util.Dom; |
| 979 | if (!namespace) { | 1002 | if (!namespace) { |
| 980 | namespace = "guia"; | 1003 | namespace = "guia"; |
| 981 | } | 1004 | } |
| 1005 | + Dom.setStyle( | ||
| 1006 | + guia | ||
| 1007 | + + "obj", | ||
| 1008 | + "overflow", | ||
| 1009 | + "auto"); | ||
| 982 | for (g = 0; g < 12; g++) { | 1010 | for (g = 0; g < 12; g++) { |
| 983 | Dom.setStyle( | 1011 | Dom.setStyle( |
| 984 | namespace | 1012 | namespace |
ferramentas/legenda/index.js
| @@ -346,6 +346,9 @@ i3GEOF.legenda = | @@ -346,6 +346,9 @@ i3GEOF.legenda = | ||
| 346 | } catch (erro) { | 346 | } catch (erro) { |
| 347 | i3GEO.janela.tempoMsg(erro); | 347 | i3GEO.janela.tempoMsg(erro); |
| 348 | } | 348 | } |
| 349 | + if(i3GEO.guias.ajustaGuiaFerramenta){ | ||
| 350 | + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda"); | ||
| 351 | + } | ||
| 349 | }, | 352 | }, |
| 350 | /* | 353 | /* |
| 351 | * Function: html | 354 | * Function: html |
ferramentas/legenda/template_mst.html
| 1 | -<div id='guiasYUI' class='yui-navset' style='top: 0px; cursor: pointer; left: 0px;'> | 1 | +<div class='yui-navset' style='top: 0px; cursor: pointer; left: 0px;'> |
| 2 | <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'> | 2 | <ul class='yui-nav' style='border-width: 0pt 0pt 0px; border-color: rgb(240, 240, 240); border-bottom-color: white;'> |
| 3 | <li> | 3 | <li> |
| 4 | - | ||
| 5 | <div id='i3GEOlegendaguia6' style='text-align: center; left: 0px;'> | 4 | <div id='i3GEOlegendaguia6' style='text-align: center; left: 0px;'> |
| 6 | <a> | 5 | <a> |
| 7 | <em><img class='ticPropriedades2' style='height: 14px' title='{{{propriedades}}}' src='{{{locaplic}}}/imagens/visual/default/branco.gif'> </em> | 6 | <em><img class='ticPropriedades2' style='height: 14px' title='{{{propriedades}}}' src='{{{locaplic}}}/imagens/visual/default/branco.gif'> </em> |
| 8 | </a> | 7 | </a> |
| 9 | </div> | 8 | </div> |
| 10 | - | ||
| 11 | </li> | 9 | </li> |
| 12 | <li> | 10 | <li> |
| 13 | - | ||
| 14 | <div id='i3GEOlegendaguia1' style='text-align: center; left: 0px;'> | 11 | <div id='i3GEOlegendaguia1' style='text-align: center; left: 0px;'> |
| 15 | <a> | 12 | <a> |
| 16 | <em>{{{legenda}}}</em> | 13 | <em>{{{legenda}}}</em> |
| 17 | </a> | 14 | </a> |
| 18 | </div> | 15 | </div> |
| 19 | - | ||
| 20 | </li> | 16 | </li> |
| 21 | <li> | 17 | <li> |
| 22 | - | ||
| 23 | <div id='i3GEOlegendaguia2' style='text-align: center; left: 0px;'> | 18 | <div id='i3GEOlegendaguia2' style='text-align: center; left: 0px;'> |
| 24 | <a> | 19 | <a> |
| 25 | <em>{{{classes}}}</em> | 20 | <em>{{{classes}}}</em> |
| @@ -72,13 +67,13 @@ | @@ -72,13 +67,13 @@ | ||
| 72 | <tr> | 67 | <tr> |
| 73 | <td>{{{de}}}:</td> | 68 | <td>{{{de}}}:</td> |
| 74 | <td> | 69 | <td> |
| 75 | - <div class='i3geoForm100 i3geoFormIconeAquarela' > | 70 | + <div class='i3geoForm100 i3geoFormIconeAquarela'> |
| 76 | <input type='text' id='i3GEOlegendaacori' value='0,0,0' /> | 71 | <input type='text' id='i3GEOlegendaacori' value='0,0,0' /> |
| 77 | </div> | 72 | </div> |
| 78 | </td> | 73 | </td> |
| 79 | <td>{{{ate}}}:</td> | 74 | <td>{{{ate}}}:</td> |
| 80 | <td> | 75 | <td> |
| 81 | - <div class='i3geoForm100 i3geoFormIconeAquarela' > | 76 | + <div class='i3geoForm100 i3geoFormIconeAquarela'> |
| 82 | <input type='text' id='i3GEOlegendaacorf' value='255,255,255' /> | 77 | <input type='text' id='i3GEOlegendaacorf' value='255,255,255' /> |
| 83 | </div> | 78 | </div> |
| 84 | </td> | 79 | </td> |