mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
fix: prevent hidden elements on last page of data grid (#122781)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
87c0f1184a
commit
07340b5f5f
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ export const useDataGridHeightHack = (pageSize: number, rowCount: number) => {
|
|||
setHeight(DATA_GRID_HEIGHT_BY_PAGE_SIZE[pageSize]);
|
||||
} else if (rowCount <= pageSize) {
|
||||
// This is unnecessary if we add rowCount > pageSize below
|
||||
setHeight(dataGridRowHeight * rowCount + (headerSectionHeight + additionalFiltersHeight));
|
||||
setHeight(
|
||||
dataGridRowHeight * (rowCount + 1) + (headerSectionHeight + additionalFiltersHeight)
|
||||
);
|
||||
} else if (
|
||||
// rowCount > pageSize && // This will fix the issue but is always full height so has a lot of empty state
|
||||
gridVirtualized &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue