summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-09-24 13:56:55 +0000
committerqsm-odoo <qsm@odoo.com>2020-09-24 14:44:23 +0000
commit5ffb7bb2f461de2b3cf95ef0df6a24b668bf9bd3 (patch)
tree585a828c4d22680132a776ab40ba5296e9b27c47 /addons/web/static/src/scss
parent9f9419436a8e18a1802fabba1236b2ca5b5cc25a (diff)
[FIX] web: remove 'overlay' overflow on modals
The o-scrollbar-overlay mixin was introduced for a fix on the enterprise home menu (see related commit in enterprise that comes with this PR). It was used on modal elements at the same time for no apparent reason: the modal in the backend do not even scroll as this is their modal-body that does. This now introduced a bug in the frontend: some code which allows to scroll to an element in a modal was not working on chrome because the related code was checking for the element with 'overflow: auto'... which it could not find since that element uses 'overflow: overlay'. As overlay is a deprecated value, it seemed better to remove its use rather than adapt the frontend code expecting the 'auto' value. This also solve a design inconsistency between Chrome and Firefox (where the overlay value is simply ignored). closes odoo/odoo#58444 Related: odoo/enterprise#13524 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/modal.scss6
-rw-r--r--addons/web/static/src/scss/utils.scss7
2 files changed, 0 insertions, 13 deletions
diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
index 7c5e230708f..c44e5239fdc 100644
--- a/addons/web/static/src/scss/modal.scss
+++ b/addons/web/static/src/scss/modal.scss
@@ -121,12 +121,6 @@
}
}
-body.modal-open {
- .modal {
- @include o-scrollbar-overlay;
- }
-}
-
// Temporary fix for modals which are not instantiated thanks to the Dialog
// JS classes (deprecated case) (see bootstrap_overridden.scss) + Frontend.
//
diff --git a/addons/web/static/src/scss/utils.scss b/addons/web/static/src/scss/utils.scss
index cdba348e36b..0fcca801719 100644
--- a/addons/web/static/src/scss/utils.scss
+++ b/addons/web/static/src/scss/utils.scss
@@ -421,13 +421,6 @@
}
}
-// Scrollbar doesn't overlap with content
-@mixin o-scrollbar-overlay {
- overflow-y: auto;
- overflow-y: overlay;
- -ms-overflow-style: -ms-autohiding-scrollbar;
-}
-
%o-nocontent-init-image {
content: "";
display: block;