Commit 11b31367 authored by Alex Felippe Chiozo's avatar Alex Felippe Chiozo
Browse files

evita problemas no Chrome com cabeçalhos/rodapés

parent 97cd5b57
Pipeline #11994 failed with stages
in 3 minutes and 39 seconds
......@@ -40,6 +40,7 @@ a.btn, #registration-valuers--admin {
}
@media print {
/*
#main-header {
display: table-header-group;
}
......@@ -47,7 +48,7 @@ a.btn, #registration-valuers--admin {
#main-section {
display: table-row-group;
}
*/
.header-content {
min-height: 4rem;
}
......@@ -60,15 +61,15 @@ a.btn, #registration-valuers--admin {
#editable-entity, .alert.warning {
display: none;
}
/*
#empty-footer {
display: table-footer-group;
height: 160px;
visibility: hidden;
}
*/
footer {
position: fixed;
/*position: fixed;*/
height: 160px;
bottom: 0;
padding: 0;
......
$(function () {
// initialisation
const $footer = $("footer");
console.log($footer.height());
$footer.before("<div id=\"empty-footer\">.</div>");
// const $footer = $("footer");
// $footer.before("<div id=\"empty-footer\">.</div>");
$("#main-header").removeClass("sombra");
// trigger the print window
setTimeout(function () {
$(window).resize();
// $(window).resize();
window.print();
return;
}, 500);
// adjust height of empty-footer
$(window).resize(function () {
$("#empty-footer").height($footer.height());
return;
});
// $(window).resize(function () {
// $("#empty-footer").height($footer.height());
// return;
// });
// adjust header on scroll
$(window).scroll(function () {
$("#main-header")[0].style.top = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment