Skip to content

Commit

Permalink
[IMP] web: views don't need action manager to scroll
Browse files Browse the repository at this point in the history
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
  • Loading branch information
juliusc2066 committed Mar 27, 2024
1 parent b7bf4cc commit 8444821
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addons/web/static/src/webclient/webclient_layout.scss
Expand Up @@ -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%;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8444821

Please sign in to comment.