From 8444821ae88556630a0160a255d3ea012743b104 Mon Sep 17 00:00:00 2001 From: "Julien Carion (juca)" Date: Thu, 21 Mar 2024 11:08:24 +0100 Subject: [PATCH] [IMP] web: views don't need action manager to scroll This commit moves the overflow property for the o_content class inside the webclient to a more general scope where we don't need an action manager and an action to apply it. This allows to have a scrollbar inside tests without the need of spawning a webclient. Also removes useless duplicate rules from the same file. task-3820329 --- addons/web/static/src/webclient/webclient_layout.scss | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/web/static/src/webclient/webclient_layout.scss b/addons/web/static/src/webclient/webclient_layout.scss index c225285ff2f76..767ef1aa73c6d 100644 --- a/addons/web/static/src/webclient/webclient_layout.scss +++ b/addons/web/static/src/webclient/webclient_layout.scss @@ -35,9 +35,6 @@ html { flex: 0 0 auto; } .o_content { - flex: 1 1 auto; - position: relative; // Allow to redistribute the 100% height to its child - overflow: auto; height: 100%; } @@ -67,6 +64,7 @@ html { direction: ltr; //Define direction attribute here so when rtlcss preprocessor run, it converts it to rtl flex: 1 1 auto; position: relative; // Allow to redistribute the 100% height to its child + overflow: auto; > .o_view_controller { position: absolute; // Get the 100% height of its flex parent