From fa67e8f0c37ea439d2549c67ab30327a55b38541 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 9 May 2012 18:21:16 +0200 Subject: [PATCH] [FIX] Compute min-height for kanban view's cards in ungroupped mode in order to avoid gaps bzr revid: fme@openerp.com-20120509162116-3f5bp2n720kvmsof --- addons/web_kanban/static/src/js/kanban.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 928a06d8ba2..3040220679f 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -355,8 +355,19 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({ this.$element.data('widget', this); this.$records.data('widget', this); this.$has_been_started.resolve(); + this.compute_cards_height(); return def; }, + compute_cards_height: function() { + var self = this; + var min_height = 0; + _.each(this.records, function(r) { + min_height = Math.max(min_height, r.$element.outerHeight()); + }); + _.each(this.records, function(r) { + r.$element.css('min-height', min_height); + }); + }, destroy: function() { this._super(); if (this.$records) {