Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiDataGrid] Horizontal scroll is hidden when it has pagination and is fullscreen on desktop #5131

Closed
machadoum opened this issue Sep 2, 2021 · 0 comments · Fixed by #5557

Comments

@machadoum
Copy link
Member

I was able to isolate the issue on CodeSandbox: https://codesandbox.io/s/datagrid-hidden-horizontal-scrollbar-when-fullscreen-vjiyz?file=/index.js

Please open it on a widescreen (the footer gets smaller on mobile) and click on "Full screen". It won't display the horizontal scroll bar.
Screenshot 2021-09-02 at 11 17 15

Inspecting the element, it looks like that euiDataGrid__virtualized height is bigger than it should. It isn't taking into account the pagination height here:

  if (isFullScreen) {
    finalHeight =
      window.innerHeight - toolbarHeight - headerRowHeight - footerRowHeight;
    finalWidth = window.innerWidth;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant