diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-09-24 13:56:55 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-09-24 14:44:23 +0000 |
| commit | 5ffb7bb2f461de2b3cf95ef0df6a24b668bf9bd3 (patch) | |
| tree | 585a828c4d22680132a776ab40ba5296e9b27c47 | |
| parent | 9f9419436a8e18a1802fabba1236b2ca5b5cc25a (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>
| -rw-r--r-- | addons/web/static/src/scss/modal.scss | 6 | ||||
| -rw-r--r-- | addons/web/static/src/scss/utils.scss | 7 |
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; |
