Skip to content

Instantly share code, notes, and snippets.

@limscoder
Created March 16, 2018 19:38
Show Gist options
  • Save limscoder/c30530ccce99d11e09c7ede0d6b60e86 to your computer and use it in GitHub Desktop.
Save limscoder/c30530ccce99d11e09c7ede0d6b60e86 to your computer and use it in GitHub Desktop.
updateHeight(height = 500 // dynamically calculated height) {
const rowHeight = GRID_CELL_HEIGHT + GRID_CELL_VMARGIN;
this.panel.updateGridPos({
...this.panel.gridPos,
h: Math.ceil(height / rowHeight)
});
this.dashboard.events.emit('row-expanded');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment