From bda5cdcb2fd0cd14b2fc413550ac48f9f9a1b576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sat, 29 Oct 2016 13:14:37 +0200 Subject: [PATCH] ux(dash edit mode): fix for row height when collapsed --- public/app/features/dashboard/row/row.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/row/row.ts b/public/app/features/dashboard/row/row.ts index 6fcbfb6a140..21d85c83281 100644 --- a/public/app/features/dashboard/row/row.ts +++ b/public/app/features/dashboard/row/row.ts @@ -105,7 +105,7 @@ export function rowDirective($rootScope) { row: "=", }, link: function(scope, element) { - scope.$watchGroup(['ctrl.row.height'], function() { + scope.$watchGroup(['ctrl.row.collapse', 'ctrl.row.height'], function() { element.css({minHeight: scope.ctrl.row.collapse ? '5px' : scope.ctrl.row.height}); });