Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions packages/web-console/src/js/console/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,20 @@ export function grid(rootElement, _paginationFn, id) {
viewport.scrollTop = viewportLeft.scrollTop
}

function noData() {
if (data.length === 0) {
return true
}
return data[0].length === 0;
}

function render() {
if (noData()) {
renderColumns()
renderRows(0)
return;
}

// If viewport is invisible when grid is updated it is not possible
// to calculate column width correctly. When grid becomes visible again, resize()
// is called where we continue calculating column widths. resize() can also be
Expand Down