From a7a932c7fd11b96dfcef6fec1729593b1db8d84a Mon Sep 17 00:00:00 2001 From: "Achraf (abz)" Date: Thu, 21 Oct 2021 08:09:28 +0000 Subject: [PATCH] [FIX] web: Fix components position in modal When a componentes is in a modal and uses the positioning hook (filter dropdown in the Search More modal for example), it will shifted from the toggler button. This is due to a `-webkit-transform: translate3d (0, 0, 0);` applied on the `modal-body` which influences the `position: fixed` attribute of `.o-popper-position` in the `dropdown-menu` "It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. " See: https://developer.mozilla.org/en-US/docs/Web/CSS/position the translate3d was applied with https://github.com/odoo/odoo/pull/20314 As the bug is no longer exists, we can remove this style. opw-2668638 closes odoo/odoo#78775 X-original-commit: 1f86e285aeb69578378cc89771cd090cc29ccc7d Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Achraf --- addons/web/static/src/legacy/scss/bootstrap_review.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/static/src/legacy/scss/bootstrap_review.scss b/addons/web/static/src/legacy/scss/bootstrap_review.scss index 4e78247b931..ba5738183a7 100644 --- a/addons/web/static/src/legacy/scss/bootstrap_review.scss +++ b/addons/web/static/src/legacy/scss/bootstrap_review.scss @@ -74,8 +74,6 @@ } .modal-body { overflow: auto; - // fix iOS issue https://github.com/scottjehl/Device-Bugs/issues/8 - -webkit-transform: translate3d(0, 0, 0); min-height: 0; } }