From c1ec5315c5cdfed85b66d6307709fad43c88443e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 13 Oct 2014 14:04:14 +0200 Subject: [PATCH] More responsive resize of kanban and taskboard --- app/coffee/modules/kanban/main.coffee | 3 +++ app/coffee/modules/taskboard/main.coffee | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/coffee/modules/kanban/main.coffee b/app/coffee/modules/kanban/main.coffee index 9240fd48..1446fb39 100644 --- a/app/coffee/modules/kanban/main.coffee +++ b/app/coffee/modules/kanban/main.coffee @@ -317,6 +317,9 @@ KanbanColumnHeightFixerDirective = -> link = ($scope, $el, $attrs) -> timeout(500, -> renderSize($el)) + $scope.$on "resize", -> + renderSize($el) + $scope.$on "$destroy", -> $el.off() diff --git a/app/coffee/modules/taskboard/main.coffee b/app/coffee/modules/taskboard/main.coffee index c89634d7..8cd2dc37 100644 --- a/app/coffee/modules/taskboard/main.coffee +++ b/app/coffee/modules/taskboard/main.coffee @@ -303,6 +303,9 @@ TaskboardTableHeightFixerDirective = -> link = ($scope, $el, $attrs) -> timeout(500, -> renderSize($el)) + $scope.$on "resize", -> + renderSize($el) + return {link:link}