Created
March 16, 2018 19:38
-
-
Save limscoder/c30530ccce99d11e09c7ede0d6b60e86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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