You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[EuiDataGrid] Full screen mode can sometimes be quirky with adding the body class #5092
changed the title [-][EuiDatGrid] Full screen mode can sometimes be quirky with adding the body class[/-][+][EuiDataGrid] Full screen mode can sometimes be quirky with adding the body class[/+]on Aug 26, 2021
I think just changing the code back to how it was before #5008
if (typeof document !== 'undefined') {
// When data grid is full screen, we add a class to the body to remove the extra scrollbar
if (isFullScreen) {
document.body.classList.add('euiDataGrid__restrictBody');
} else {
document.body.classList.remove('euiDataGrid__restrictBody');
}
}
Activity
[-][EuiDatGrid] Full screen mode can sometimes be quirky with adding the body class[/-][+][EuiDataGrid] Full screen mode can sometimes be quirky with adding the body class[/+]kqualters commentedon Aug 31, 2021
The problem is this line https://github.com/elastic/eui/blob/master/src/components/datagrid/data_grid_toolbar.tsx#L78 , I think the intention was to add the class if not there otherwise do nothing if isFullScreen is true, and remove the class if it is there otherwise do nothing if isFullScreen is false. Instead, it's toggling the class on every render if isFullScreen is false
kqualters commentedon Aug 31, 2021
I think just changing the code back to how it was before #5008
will fix the issue
closes elastic#5092 - add changelog for fullscreen bugfix in Caroline…
[EuiDataGrid] Toolbar UI layout reorganization (#5334)
cee-chen commentedon Jan 5, 2022
This was closed by #5334 / 99de8bc