From 9e01297c677e77a42bb0517126daaaf53eb7ea58 Mon Sep 17 00:00:00 2001 From: Benjamin Vray Date: Wed, 18 Nov 2020 14:45:51 +0000 Subject: [PATCH] [FIX] website: fix popup height - The modal content of the popup snippet had a maximum height of 100% because of a global rule on modals. But, here, the scrollable element is not the modal so we dont want this rule. - For the popup to be scrolled correctly we also had to remove the rule that adds a fixed 100% height on modal-dialog and we added a min-height of 100% to correctly display the popup in the middle position. Part of https://github.com/odoo/odoo/pull/61998 task-2312878 X-original-commit: 9cd8c15ed22e3033c654fcfa28f76b79083dcf98 --- addons/website/static/src/snippets/s_popup/001.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/website/static/src/snippets/s_popup/001.scss b/addons/website/static/src/snippets/s_popup/001.scss index af92f1b8c42..f8ae94ca632 100644 --- a/addons/website/static/src/snippets/s_popup/001.scss +++ b/addons/website/static/src/snippets/s_popup/001.scss @@ -1,11 +1,17 @@ .s_popup[data-vcss='001'] { .modal-content { min-height: $font-size-lg * 2; + max-height: none; border: 0; border-radius: 0; box-shadow: $modal-content-box-shadow-sm-up; } + .modal-dialog { + height: auto; + min-height: 100%; + } + // Close icon .s_popup_close { z-index: $zindex-modal;