Commit ee1f0e7f63c60eed850e138533640127bf040f48
1 parent
c827bd98
Exists in
master
and in
7 other branches
Ajustes nos layouts das ferramentas e criação de funções para manter as guias sempre no topo
Showing
1 changed file
with
21 additions
and
24 deletions
Show diff stats
classesjs/classe_guias.js
| @@ -974,6 +974,27 @@ i3GEO.guias = | @@ -974,6 +974,27 @@ 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 | + mostraGuiaFerramenta : function(guia, namespace) { | ||
| 978 | + var g, Dom = YAHOO.util.Dom; | ||
| 979 | + if (!namespace) { | ||
| 980 | + namespace = "guia"; | ||
| 981 | + } | ||
| 982 | + for (g = 0; g < 12; g++) { | ||
| 983 | + Dom.setStyle( | ||
| 984 | + namespace | ||
| 985 | + + g | ||
| 986 | + + "obj", | ||
| 987 | + "display", | ||
| 988 | + "none"); | ||
| 989 | + } | ||
| 990 | + Dom.setStyle( | ||
| 991 | + guia | ||
| 992 | + + "obj", | ||
| 993 | + "display", | ||
| 994 | + "block"); | ||
| 995 | + }, | ||
| 996 | + //TODO documentar | ||
| 997 | + //TODO incluir nas ferramentas | ||
| 977 | ajustaGuiaFerramenta : function(idjanela,namespace){ | 998 | ajustaGuiaFerramenta : function(idjanela,namespace){ |
| 978 | var c = $i("i3GEOF.legenda_corpo"), | 999 | var c = $i("i3GEOF.legenda_corpo"), |
| 979 | h, | 1000 | h, |
| @@ -997,30 +1018,6 @@ i3GEO.guias = | @@ -997,30 +1018,6 @@ i3GEO.guias = | ||
| 997 | } | 1018 | } |
| 998 | } | 1019 | } |
| 999 | }, | 1020 | }, |
| 1000 | - mostraGuiaFerramenta : function(guia, namespace) { | ||
| 1001 | - var g, Dom = YAHOO.util.Dom; | ||
| 1002 | - if (!namespace) { | ||
| 1003 | - namespace = "guia"; | ||
| 1004 | - } | ||
| 1005 | - Dom.setStyle( | ||
| 1006 | - guia | ||
| 1007 | - + "obj", | ||
| 1008 | - "overflow", | ||
| 1009 | - "auto"); | ||
| 1010 | - for (g = 0; g < 12; g++) { | ||
| 1011 | - Dom.setStyle( | ||
| 1012 | - namespace | ||
| 1013 | - + g | ||
| 1014 | - + "obj", | ||
| 1015 | - "display", | ||
| 1016 | - "none"); | ||
| 1017 | - } | ||
| 1018 | - Dom.setStyle( | ||
| 1019 | - guia | ||
| 1020 | - + "obj", | ||
| 1021 | - "display", | ||
| 1022 | - "block"); | ||
| 1023 | - }, | ||
| 1024 | /** | 1021 | /** |
| 1025 | * Section: guiaMovel | 1022 | * Section: guiaMovel |
| 1026 | * | 1023 | * |