ux(dashboard): fix for dropzone width when resizing another panel

This commit is contained in:
Torkel Ödegaard 2016-11-06 17:41:17 +01:00
parent 2d19af601a
commit 907fb9c1be
2 changed files with 3 additions and 3 deletions

View File

@ -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');
}
}

View File

@ -191,7 +191,7 @@ module.directive('panelResizer', function($rootScope) {
}
}
ctrl.row.panelSpanChanged();
ctrl.row.panelSpanChanged(true);
scope.$apply(function() {
ctrl.render();