From 907fb9c1bed093b37316aad426a0278ce7d598d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 6 Nov 2016 17:41:17 +0100 Subject: [PATCH] ux(dashboard): fix for dropzone width when resizing another panel --- public/app/features/dashboard/row/row_model.ts | 4 ++-- public/app/features/panel/panel_directive.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/features/dashboard/row/row_model.ts b/public/app/features/dashboard/row/row_model.ts index 8f458e1911d..0729d43bf0a 100644 --- a/public/app/features/dashboard/row/row_model.ts +++ b/public/app/features/dashboard/row/row_model.ts @@ -44,11 +44,11 @@ export class DashboardRow { } } - panelSpanChanged() { + panelSpanChanged(alwaysSendEvent?) { var oldSpan = this.span; this.updateRowSpan(); - if (oldSpan !== this.span) { + if (alwaysSendEvent || oldSpan !== this.span) { this.events.emit('span-changed'); } } diff --git a/public/app/features/panel/panel_directive.ts b/public/app/features/panel/panel_directive.ts index ee6229c59b0..3af80d25483 100644 --- a/public/app/features/panel/panel_directive.ts +++ b/public/app/features/panel/panel_directive.ts @@ -191,7 +191,7 @@ module.directive('panelResizer', function($rootScope) { } } - ctrl.row.panelSpanChanged(); + ctrl.row.panelSpanChanged(true); scope.$apply(function() { ctrl.render();