Skip to content

Incorrect calculation of the container height in the case of dynamic rendering of table rows #218

Open

Description

@Zveroboev

In this issue shows an example of how to use the RectList in table rendering (#47)

In the current implementation does not take into account the height of the <thead> tag that is not included in the items array

Real container height:
image

Сalculated container height
image

Activity

  1. Zveroboev commented on Jan 14, 2019

    @Zveroboev
    Author

    ping

  2. aih8 commented on Feb 12, 2019

    @aih8

    @Zveroboev have find a way to fix this ? I met the same question

  3. Zveroboev commented on Feb 12, 2019

    @Zveroboev
    Author

    @aih8 no :(

  4. Venryx commented on Oct 30, 2019

    @Venryx

    Found a way to fix it -- as long as the header's height is constant.

    Just add margin-bottom: ?px; to the styling of the root div element that ReactList's render function generates.

    I currently do this by using a css selector as follows:

    .parent-containing-react-list > div:nth-child(INDEX_OF_REACT_LIST_CHILD) {
      margin-bottom: ?px;
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions