React-data-grid: ReactDataGrid width does not update correctly

Created on 18 Aug 2018  路  2Comments  路  Source: adazzle/react-data-grid

React version v.16.4.2

Browser:

  • IE 11
  • Chrome

Report type: Bug Report

I'm using Grid beside SideNavigation.

When SideNavigatio opens and closes the Grids width does not update correctly.

  1. When SideNavigation has collapsed the Grid:s width does not expand.
  2. When SideNavigation is re-expanded Grid:s width expands to size, that it should have been previously and ends up taking too much space.

Example project: https://github.com/jEnbuska/react-data-grid_bug-report

Demonstration screenshots:

  • Initial state before Sidebar closed
    report_initial_state

  • State after sidebar closed (Grid width does not update)
    report_after_sidebar_collaps

  • State after Sidebar reopened (style: flex-basis: 200px), Grid:s width updates to parents old width
    after_sidebar_re-open

removing react-grid-Container:s inline width style, from developer tools, fixes the issues (at least partially), but is there a way to prevent this from happening in the first place?

wontfix

Most helpful comment

I would hope this issue re-opened. The problem is also that the while the examples sidebar is opened after being closed the table will actually grow out of the container.

All 2 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

I would hope this issue re-opened. The problem is also that the while the examples sidebar is opened after being closed the table will actually grow out of the container.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daniel1943 picture daniel1943  路  3Comments

JordanBonitatis picture JordanBonitatis  路  4Comments

jmahony picture jmahony  路  4Comments

martinnov92 picture martinnov92  路  3Comments

alvaro1728 picture alvaro1728  路  4Comments