[FIX] web: fix view manager header height form view
authorGéry Debongnie <ged@odoo.com>
Thu, 4 Dec 2014 13:11:56 +0000 (14:11 +0100)
committerGéry Debongnie <ged@odoo.com>
Thu, 4 Dec 2014 13:11:56 +0000 (14:11 +0100)
in form view, the header height was higher than in other views (4 extra
pixels). This was caused by the floating buttons in
.oe-view-manager-buttons.  This commit forces the column to take exactly
30 px regardless of its content. (it is not a problem even if the
content takes extra lines)

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

index 67c2b40..c573e5c 100644 (file)
   -moz-user-select: none;
   user-select: none;
 }
+.openerp .oe-view-manager-header .oe-button-column {
+  height: 30px;
+}
 .openerp .oe-view-manager-header .dropdown-menu li {
   position: relative;
 }
index 2ada1c8..eeea472 100644 (file)
@@ -908,6 +908,8 @@ $sheet-padding: 16px
         -webkit-user-select: none
         -moz-user-select: none
         user-select: none
+        .oe-button-column
+            height: 30px
         .dropdown-menu
             li
                 position: relative
index 458d516..d37535c 100644 (file)
             <div class="oe-view-manager-search-view col-md-6" />
         </div>
         <div class="row">
-            <div class="col-md-6">
+            <div class="col-md-6 oe-button-column">
                 <div class="oe-view-manager-buttons">
                     <t t-foreach="widget.views" t-as="view">
                         <div t-attf-class="oe-#{view}-buttons"/>