[IMP] fix a css problem with multiple view_manager
authorGéry Debongnie <ged@odoo.com>
Fri, 23 May 2014 14:07:42 +0000 (16:07 +0200)
committerGéry Debongnie <ged@odoo.com>
Fri, 23 May 2014 14:07:42 +0000 (16:07 +0200)
when a view_manager is contained inside another, the
css rule for defining a scrollable zone (with position:absolute)
was also applied to the inside view manager.

addons/web/static/src/css/base.css
addons/web/static/src/css/base.sass

index c9e7020..8f8db21 100644 (file)
 .openerp .oe_application > div {
   height: 100%;
 }
+.openerp .oe_application > div > .oe_view_manager > .oe_view_manager_body {
+  position: absolute;
+  overflow: auto;
+  top: 90px;
+  bottom: 0;
+  left: 0;
+  right: 0;
+}
 .openerp .oe_application .oe_breadcrumb_item:not(:last-child) {
   max-width: 7em;
   white-space: nowrap;
   height: inherit;
   width: 100%;
 }
-.openerp .oe_view_manager .oe_view_manager_body {
-  position: absolute;
-  overflow: auto;
-  top: 90px;
-  bottom: 0;
-  left: 0;
-  right: 0;
-}
 .openerp .oe_view_manager .oe_view_manager_view_kanban:not(:empty) {
   height: 100%;
 }
index 72c7107..d70b030 100644 (file)
@@ -957,6 +957,15 @@ $sheet-padding: 16px
             color: $link-color
         > div
             height: 100%
+            > .oe_view_manager
+                > .oe_view_manager_body
+                    position: absolute
+                    overflow: auto
+                    top: 90px
+                    bottom: 0
+                    left: 0
+                    right: 0
+
         .oe_breadcrumb_item:not(:last-child)
             max-width: 7em
             white-space: nowrap
@@ -971,13 +980,6 @@ $sheet-padding: 16px
         display: table
         height: inherit
         width: 100%
-        .oe_view_manager_body
-            position: absolute
-            overflow: auto
-            top: 90px
-            bottom: 0
-            left: 0
-            right: 0
         .oe_view_manager_view_kanban:not(:empty)
             height: 100%
         &[data-view-type=kanban]