Commit 68a68ac9993cc9f28467eebb03a5bade018f7c62
1 parent
0fe7bf8e
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
7 additions
and
4 deletions
Show diff stats
classesjs/classe_i3geo.js
| ... | ... | @@ -576,7 +576,8 @@ i3GEO = { |
| 576 | 576 | {array} - [w,h] |
| 577 | 577 | */ |
| 578 | 578 | reCalculaTamanho: function(){ |
| 579 | - var diminuix,diminuiy,menos,novow,novoh,w,h,temp; | |
| 579 | + var diminuix,diminuiy,menos,novow,novoh,w,h,temp, | |
| 580 | + antigoh = i3GEO.parametros.h; | |
| 580 | 581 | diminuix = (navm) ? i3GEO.configura.diminuixM : i3GEO.configura.diminuixN; |
| 581 | 582 | diminuiy = (navm) ? i3GEO.configura.diminuiyM : i3GEO.configura.diminuiyN; |
| 582 | 583 | menos = 0; |
| ... | ... | @@ -590,9 +591,11 @@ i3GEO = { |
| 590 | 591 | temp = i3GEO.util.tamanhoBrowser(); |
| 591 | 592 | novow = temp[0]; |
| 592 | 593 | novoh = temp[1]; |
| 594 | + temp = antigoh - (novoh - diminuiy); | |
| 595 | + if(temp > -100 && temp < 100) | |
| 596 | + {return} | |
| 593 | 597 | |
| 594 | 598 | document.body.style.height = novoh; |
| 595 | - | |
| 596 | 599 | w = novow - menos - diminuix; |
| 597 | 600 | h = novoh - diminuiy; |
| 598 | 601 | ... | ... |
interface/openlayers_t.htm
| ... | ... | @@ -176,6 +176,7 @@ i3GEO.barraDeBotoes.INCLUIBOTAO = { |
| 176 | 176 | v3d: false |
| 177 | 177 | }; |
| 178 | 178 | i3GEO.Interface.TABLET = true; |
| 179 | +i3GEO.configura.diminuiyN = 0; | |
| 179 | 180 | /* |
| 180 | 181 | Após a criação, é criado o objeto i3geoOL que corresponde ao objeto map da API do OpenLayers. |
| 181 | 182 | Vc pode usar i3geoOL para aplicar os métodos e verificar as propriedades da API do OpenLayers |
| ... | ... | @@ -192,13 +193,12 @@ i3GEO.barraDeBotoes.AUTO = true; |
| 192 | 193 | i3GEO.barraDeBotoes.COMPORTAMENTO = "laranja"; |
| 193 | 194 | i3GEO.barraDeBotoes.ORIENTACAO = "horizontal"; |
| 194 | 195 | i3GEO.barraDeBotoes.AJUDA = false; |
| 195 | - | |
| 196 | +i3GEO.barraDeBotoes.HORIZONTALW = 360; | |
| 196 | 197 | |
| 197 | 198 | i3GEO.Interface.BARRABOTOESLEFT = 5; |
| 198 | 199 | i3GEO.Interface.BARRABOTOESTOP = 0; |
| 199 | 200 | i3GEO.Interface.BARRADEZOOMTOP = 2; |
| 200 | 201 | i3GEO.Interface.BARRADEZOOMLEFT = 5; |
| 201 | -i3GEO.barraDeBotoes.HORIZONTALW = 360; | |
| 202 | 202 | i3GEO.Interface.ATIVAMENUCONTEXTO = false; |
| 203 | 203 | |
| 204 | 204 | i3GEO.arvoreDeTemas.TIPOBOTAO = "radio"; | ... | ... |