mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fixed bug: Notebooks Vertical Scrollbar is Unnecessary for Some Grid Outputs (#5847)
This commit is contained in:
@@ -67,7 +67,7 @@ export function renderDataResource(
|
|||||||
detailTable.registerPlugin(new AdditionalKeyBindings());
|
detailTable.registerPlugin(new AdditionalKeyBindings());
|
||||||
let numRows = detailTable.grid.getDataLength();
|
let numRows = detailTable.grid.getDataLength();
|
||||||
// Need to include column headers and scrollbar, so that's why 1 needs to be added
|
// Need to include column headers and scrollbar, so that's why 1 needs to be added
|
||||||
let rowsHeight = (numRows + 1) * RESULTS_GRID_DEFAULTS.rowHeight + BOTTOM_PADDING_AND_SCROLLBAR;
|
let rowsHeight = (numRows + 1) * RESULTS_GRID_DEFAULTS.rowHeight + BOTTOM_PADDING_AND_SCROLLBAR + numRows;
|
||||||
// if no rows are in the grid, set height to 100% of the container's height
|
// if no rows are in the grid, set height to 100% of the container's height
|
||||||
if (numRows === 0) {
|
if (numRows === 0) {
|
||||||
tableContainer.style.height = '100%';
|
tableContainer.style.height = '100%';
|
||||||
|
|||||||
Reference in New Issue
Block a user