Closed CezCz closed 2 years ago
You should debug what's wrong with this horizontal sizing:
You can also bring that to MUI, I would not call it a problem in react-virtuoso.
Hey @petyosi thanks for replying.
I believe however that it still comes from react-virtuoso. I have refined the example and replicated the problem without MUI. Please see https://codesandbox.io/s/flamboyant-golick-u4qcxo?file=/src/App.js
Should I recreate the issue (to be an opened one) or could we still discuss here?
I believe this is because the root virtuoso element has position: relative
, so it does not stretch the container width. position relative is necessary for the internal measurements - I think there might be ways to avoid that, but this is a big effort and likely a breaking change.
Would you have any workarounds suggestions? That would be great
Describe the bug Virtuoso renders with 0px width when embedded in MUI Grid component.
Reproduction https://codesandbox.io/s/flamboyant-golick-u4qcxo?file=/src/App.js
Desktop (please complete the following information):
Additional context I tried to wrap Virtuoso in divs with
display:block
, but it didn't help the issue