From ffb0184ddad915e55cf15e93969970b074ccc209 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 14 Dec 2014 03:52:44 +0000 Subject: [PATCH] --- classesjs/classe_guias.js | 28 ++++++++++++++++++++++++++++ ferramentas/legenda/index.js | 3 +++ ferramentas/legenda/template_mst.html | 11 +++-------- 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/classesjs/classe_guias.js b/classesjs/classe_guias.js index 43e9587..07f2753 100644 --- a/classesjs/classe_guias.js +++ b/classesjs/classe_guias.js @@ -974,11 +974,39 @@ i3GEO.guias = * estilo alterado para none, tornando-se invisíveis * */ + ajustaGuiaFerramenta : function(idjanela,namespace){ + var c = $i("i3GEOF.legenda_corpo"), + h, + g, + temp; + + c.style.overflow = "unset"; + c.style.overflow = "none"; + + h = c.style.height; + h = parseInt(h,10) - 40 + "px"; + for (g = 0; g < 12; g++) { + temp = $i(namespace + + "guia" + + g + + "obj"); + if(temp){ + temp.style.height = h; + temp.style.width = "100%"; + temp.style.overflow = "auto"; + } + } + }, mostraGuiaFerramenta : function(guia, namespace) { var g, Dom = YAHOO.util.Dom; if (!namespace) { namespace = "guia"; } + Dom.setStyle( + guia + + "obj", + "overflow", + "auto"); for (g = 0; g < 12; g++) { Dom.setStyle( namespace diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js index 9757aa0..7c94af8 100644 --- a/ferramentas/legenda/index.js +++ b/ferramentas/legenda/index.js @@ -346,6 +346,9 @@ i3GEOF.legenda = } catch (erro) { i3GEO.janela.tempoMsg(erro); } + if(i3GEO.guias.ajustaGuiaFerramenta){ + i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda","i3GEOlegenda"); + } }, /* * Function: html diff --git a/ferramentas/legenda/template_mst.html b/ferramentas/legenda/template_mst.html index 31fb58f..e479704 100644 --- a/ferramentas/legenda/template_mst.html +++ b/ferramentas/legenda/template_mst.html @@ -1,25 +1,20 @@ -
+