From 088b33d0bcff1ccb641ebec8712bec13ff39af45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 23 May 2014 15:09:48 +0200 Subject: [PATCH] [IMP] change scrollable area to main view Now, only the main view is supposed to scroll (the part below the header with the view selector). The left menu, top bar and header are supposed to stay fixed. This is done by carefully using position:relative and absolute. However, this is likely to introduce some (many?) issues, perhaps with tooltips position and such. The bug hunt is on! --- addons/web/static/src/css/base.css | 12 +++++++++++- addons/web/static/src/css/base.sass | 10 +++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index f46a0de5836..25e5d861648 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1156,9 +1156,15 @@ display: table; height: inherit; width: 100%; + position: relative; } .openerp .oe_view_manager .oe_view_manager_body { - height: inherit; + position: absolute; + overflow: auto; + top: 90px; + bottom: 0; + left: 0; + right: 0; } .openerp .oe_view_manager .oe_view_manager_view_kanban:not(:empty) { height: inherit; @@ -3401,3 +3407,7 @@ input[type="radio"], input[type="checkbox"] { background-color: black; opacity: 0.6; } + +body { + overflow: hidden; +} diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 18da5a7098c..f2815adbf72 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -970,8 +970,14 @@ $sheet-padding: 16px display: table height: inherit width: 100% + position: relative .oe_view_manager_body - height: inherit + position: absolute + overflow: auto + top: 90px + bottom: 0 + left: 0 + right: 0 .oe_view_manager_view_kanban:not(:empty) height: inherit &[data-view-type=kanban] @@ -2762,5 +2768,7 @@ input[type="radio"], input[type="checkbox"] opacity: 0.6000000238418579 +body + overflow: hidden // au BufWritePost,FileWritePost *.sass :!sass --style expanded --line-numbers > "%:p:r.css" // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: