From c5c253c436da9358a49fe689ec4bd905b0762988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Geelen=20=28sge=29?= Date: Fri, 14 Jul 2023 14:04:39 +0200 Subject: [PATCH] [FIX] web: better report preview Report footer is sometimes misplaced in settings preview. We change the css to always stick to the bottom of the preview, no matter the content height. Task-3145445 closes odoo/odoo#136534 X-original-commit: 9be75bb17063c6b0207aa82144e9f44b6e49dc45 Signed-off-by: David Monjoie (dmo) --- addons/web/views/report_templates.xml | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/addons/web/views/report_templates.xml b/addons/web/views/report_templates.xml index cfad4fce3f4..94df525b32b 100644 --- a/addons/web/views/report_templates.xml +++ b/addons/web/views/report_templates.xml @@ -60,23 +60,13 @@ **/ /** The footers are not at the bottom of the page, so we push them down. **/ - .o_background_footer { - margin-top: 295px !important; + .o_background_footer, .o_standard_footer, .o_boxed_footer, .o_clean_footer { + position: absolute; + bottom: 0; + left:50px; + right:50px; font-size: 0.8rem } - .o_standard_footer { - margin-top: 200px !important; - font-size: 0.8rem - } - .o_boxed_footer { - margin-top: 270px !important; - font-size: 0.8rem - } - .o_clean_footer { - margin-top: 175px !important; - font-size: 0.8rem - } - /** Avoid image overflowing and creating a scrollbar **/ .o_background_header { min-width: initial !important;