mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(dashboard): fix for dropzone width when resizing another panel
This commit is contained in:
parent
2d19af601a
commit
907fb9c1be
@ -44,11 +44,11 @@ export class DashboardRow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
panelSpanChanged() {
|
panelSpanChanged(alwaysSendEvent?) {
|
||||||
var oldSpan = this.span;
|
var oldSpan = this.span;
|
||||||
this.updateRowSpan();
|
this.updateRowSpan();
|
||||||
|
|
||||||
if (oldSpan !== this.span) {
|
if (alwaysSendEvent || oldSpan !== this.span) {
|
||||||
this.events.emit('span-changed');
|
this.events.emit('span-changed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,7 +191,7 @@ module.directive('panelResizer', function($rootScope) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrl.row.panelSpanChanged();
|
ctrl.row.panelSpanChanged(true);
|
||||||
|
|
||||||
scope.$apply(function() {
|
scope.$apply(function() {
|
||||||
ctrl.render();
|
ctrl.render();
|
||||||
|
Loading…
Reference in New Issue
Block a user