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
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.
The text was updated successfully, but these errors were encountered:
Another thing you could try is adding overflowY: scroll to that cell, so that if there is a lot of text it will still say the same size, but the user can scroll the cell.
Hmmm. So I think I already do something similar with resizing the cell height initially. I think the problem is that I don't store anything in the state so when the audio/transcripts come in, the table/cell is not rendered again. Maybe this could be fixed in the future by making each cell a component?
Also, I played around with the overflow property in the Chrome inspector but couldn't figure it out. I think it might be something with React Virtualized? Since the problem is fixed once the window is resized or the table is rerendered, do you think it is bad to just have the user resize the window or to do a forceUpdate?
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.
The text was updated successfully, but these errors were encountered: