Commit 8980f481 by Torkel Ödegaard

fix(ux dashboard): panel height fix to reduce jumpiness when loading dashboard

parent 8eee4d8e
......@@ -74,6 +74,14 @@ module.directive('grafanaPanel', function($rootScope) {
var hasAlertRule;
var lastHeight = 0;
// set initial height
if (!ctrl.containerHeight) {
console.log('setting initial height');
ctrl.calculatePanelHeight();
panelContainer.css({minHeight: ctrl.containerHeight});
lastHeight = ctrl.containerHeight;
}
ctrl.events.on('render', () => {
if (lastHeight !== ctrl.containerHeight) {
panelContainer.css({minHeight: ctrl.containerHeight});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment