[IMP] change scrollable area to main view
authorGéry Debongnie <ged@odoo.com>
Fri, 23 May 2014 13:09:48 +0000 (15:09 +0200)
committerGéry Debongnie <ged@odoo.com>
Fri, 23 May 2014 13:09:48 +0000 (15:09 +0200)
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
addons/web/static/src/css/base.sass

index f46a0de..25e5d86 100644 (file)
   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;
+}
index 18da5a7..f2815ad 100644 (file)
@@ -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 <afile> > "%:p:r.css"
 // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: