Commit a49353ef7417453432d172a8b40b512a62055c52
1 parent
7794db69
Exists in
master
and in
7 other branches
Alteração nos estilos quando @media for para impressão, escondendo elementos da …
…interface OpenLayers quando se tenta imprimir o mapa diretamente do navegador
Showing
6 changed files
with
27 additions
and
0 deletions
Show diff stats
classesjs/i3geo_tudo_compacto45.js
@@ -1547,6 +1547,7 @@ if (!euEnv.imageBasePath) | @@ -1547,6 +1547,7 @@ if (!euEnv.imageBasePath) | ||
1547 | //edmar | 1547 | //edmar |
1548 | //if(args.id !== undefined) | 1548 | //if(args.id !== undefined) |
1549 | //{this.id = args.id;} | 1549 | //{this.id = args.id;} |
1550 | + container.className = "noprint"; | ||
1550 | this.container = container; | 1551 | this.container = container; |
1551 | 1552 | ||
1552 | euPreloadImage(args.image); | 1553 | euPreloadImage(args.image); |
classesjs/i3geo_tudo_compacto45.js.php
@@ -1547,6 +1547,7 @@ if (!euEnv.imageBasePath) | @@ -1547,6 +1547,7 @@ if (!euEnv.imageBasePath) | ||
1547 | //edmar | 1547 | //edmar |
1548 | //if(args.id !== undefined) | 1548 | //if(args.id !== undefined) |
1549 | //{this.id = args.id;} | 1549 | //{this.id = args.id;} |
1550 | + container.className = "noprint"; | ||
1550 | this.container = container; | 1551 | this.container = container; |
1551 | 1552 | ||
1552 | euPreloadImage(args.image); | 1553 | euPreloadImage(args.image); |
css/geral.css
@@ -195,5 +195,13 @@ h1 {padding:.25em .5em;background-color:#ccc;} | @@ -195,5 +195,13 @@ h1 {padding:.25em .5em;background-color:#ccc;} | ||
195 | /*hack opera */ | 195 | /*hack opera */ |
196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) | 196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) |
197 | { .inputsb {border:1px solid black} } | 197 | { .inputsb {border:1px solid black} } |
198 | +/* esconde na impressao */ | ||
199 | +@media print { | ||
200 | + .noprint {display:none !important;} | ||
201 | + .yuimenubar {display:none !important;} | ||
202 | + #i3GEOcompartilhar {display:none !important;} | ||
203 | + #i3GEOguiaMovel {display:none !important;} | ||
204 | + #localizarxy {display:none !important;} | ||
205 | +} | ||
198 | 206 | ||
199 | 207 |
css/i3geo45.css
@@ -195,6 +195,14 @@ h1 {padding:.25em .5em;background-color:#ccc;} | @@ -195,6 +195,14 @@ h1 {padding:.25em .5em;background-color:#ccc;} | ||
195 | /*hack opera */ | 195 | /*hack opera */ |
196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) | 196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) |
197 | { .inputsb {border:1px solid black} } | 197 | { .inputsb {border:1px solid black} } |
198 | +/* esconde na impressao */ | ||
199 | +@media print { | ||
200 | + .noprint {display:none !important;} | ||
201 | + .yuimenubar {display:none !important;} | ||
202 | + #i3GEOcompartilhar {display:none !important;} | ||
203 | + #i3GEOguiaMovel {display:none !important;} | ||
204 | + #localizarxy {display:none !important;} | ||
205 | +} | ||
198 | 206 | ||
199 | 207 | ||
200 | #barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d | 208 | #barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d |
css/i3geo45.css.php
@@ -195,6 +195,14 @@ h1 {padding:.25em .5em;background-color:#ccc;} | @@ -195,6 +195,14 @@ h1 {padding:.25em .5em;background-color:#ccc;} | ||
195 | /*hack opera */ | 195 | /*hack opera */ |
196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) | 196 | @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) |
197 | { .inputsb {border:1px solid black} } | 197 | { .inputsb {border:1px solid black} } |
198 | +/* esconde na impressao */ | ||
199 | +@media print { | ||
200 | + .noprint {display:none !important;} | ||
201 | + .yuimenubar {display:none !important;} | ||
202 | + #i3GEOcompartilhar {display:none !important;} | ||
203 | + #i3GEOguiaMovel {display:none !important;} | ||
204 | + #localizarxy {display:none !important;} | ||
205 | +} | ||
198 | 206 | ||
199 | 207 | ||
200 | #barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d | 208 | #barraedicao,#abregoogleearth,#uploadgpx,#metar,#carouselTemas,#identificaBalao,#rota,#buscafotos,#area,#confluence,#scielo,#wiki,#inseregrafico,#realca,#reinicia,#google,#zoomtot,#pan,#zoomli,#zoomlo,#zoomiauto,#zoomoauto,#identifica,#lentei,#reinicia,#exten,#selecao,#inserexy,#textofid,#mede,#perfil,#cruza,#tamanho,#imprimir,#salva,#carrega,#referencia,#pegaimagens,#v3d |
pacotes/eudock/js/euDock.Image.js
@@ -66,6 +66,7 @@ if (!euEnv.imageBasePath) | @@ -66,6 +66,7 @@ if (!euEnv.imageBasePath) | ||
66 | //edmar | 66 | //edmar |
67 | //if(args.id !== undefined) | 67 | //if(args.id !== undefined) |
68 | //{this.id = args.id;} | 68 | //{this.id = args.id;} |
69 | + container.className = "noprint"; | ||
69 | this.container = container; | 70 | this.container = container; |
70 | 71 | ||
71 | euPreloadImage(args.image); | 72 | euPreloadImage(args.image); |