From 12f004f2816fd6d4bcc941666686d91eb076a3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20=28auma=29?= Date: Fri, 7 Jul 2023 08:17:49 +0000 Subject: [PATCH] [FIX] web_editor: fix uneditable block when height > 10000px When applied, this commit will restore the edition of a block when the content has a height > 10000px. Steps to reproduce: 1) Go to a runbot 2) Go to a blog or on the homepage 3) Enter edit mode 4) Add some text in one bloc with a total height above 10000px 5) The text will be uneditable on the top Current behavior: If the text is too important in one block (more than 10000px), the text will be uneditable Expected behavior: The text should be accessible and editable even if the block has too much content opw-3393570 closes odoo/odoo#130965 X-original-commit: 493d31a9b2f6508e1e48627ff510120f93870c4e Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/web_editor.variables.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index b664a12096e..60bc3653789 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -33,7 +33,9 @@ $o-we-border-color: $o-we-bg-light !default; $o-we-ace-color: #2F3129 !default; -$o-we-handles-offset-to-hide: 10000px !default; +// Needed to be changed to be high enough to not overflow when a user +// has a page with a lot of content (10000px was proven to be too small) +$o-we-handles-offset-to-hide: 100000px !default; $o-we-handles-btn-size: 20px !default; $o-we-handles-accent-color: $o-we-accent !default; $o-we-handles-accent-color-preview: $o-enterprise-color !default;