[IMP] improvement for kanban card movement
authorParth Gajjar (Open ERP) <pga@tinyerp.com>
Wed, 5 Mar 2014 11:33:07 +0000 (17:03 +0530)
committerParth Gajjar (Open ERP) <pga@tinyerp.com>
Wed, 5 Mar 2014 11:33:07 +0000 (17:03 +0530)
bzr revid: pga@tinyerp.com-20140305113307-mbwffroxmbgefion

addons/web_kanban/static/src/css/kanban.css
addons/web_kanban/static/src/js/kanban.js

index fe0dd75..65b3d97 100644 (file)
@@ -13,9 +13,6 @@
   width: 100%;
   height: 100%;
 }
-.openerp .oe_kanban_view.oe_kanban_grouped{
-  position: relative; 
-}
 .openerp .oe_kanban_view .oe_view_nocontent .oe_view_nocontent_content {
   margin-left: 90px;
   margin-top: 5px;
   padding: 0px;
   background: white;
 }
-.openerp .oe_kanban_view .oe_kanban_column {
+.openerp .oe_kanban_view .oe_kanban_column, .openerp .oe_kanban_view .oe_kanban_column_cards {
   height: 100%;
 }
 .openerp .oe_kanban_view .oe_kanban_aggregates {
index ca4bd49..1c87c45 100644 (file)
@@ -495,12 +495,14 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
             || (!this.options.action.help && !this.options.action.get_empty_list_help)) {
             return;
         }
+        this.$el.css("position", "relative");
         $(QWeb.render('KanbanView.nocontent', { content : this.options.action.get_empty_list_help || this.options.action.help})).insertBefore(this.$('table:first'));
         this.$el.find('.oe_view_nocontent').click(function() {
             self.$buttons.openerpBounce();
         });
     },
     remove_no_result: function() {
+        this.$el.css("position", "");
         this.$el.find('.oe_view_nocontent').remove();
     },