Skip to content

ReactVirtualized Table does not update cell height after audio/transcript is updated. #376

@keving17

Description

@keving17

This is a visual bug that occurs with PR #375

Before, I used a forceUpdate() to update the entire table when audio and transcripts all returned from s3 and Watson. However, after refactoring the code to have the audio and transcripts as a separate component, the setup I had to automatically resize cell heights in reactVirtualized no longer works properly.

My original setup simply looks at the width of the window and does some calculations to readjust the height and width of cells to contain the contents of each cell. With the new audio player and transcript components, when the components update, the cell does not notice a change in window width so no updates are made. The problem seems simple to fix but I could not figure out how to make it work with React Virtualized. Luckily, the problem only appears when the table is first loaded and the problem is fixed once you adjust the width of the screen a little.

screen shot 2018-06-11 at 12 17 49 am

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions