Is centering a 2D grid possible when the container is bigger than the content inside it? #405
Answered
by
inokawa
decipher-cs
asked this question in
Q&A
-
return (
<VGrid
style={{ height: 700, background: 'red' }}
row={rows}
col={columns}
cellWidth={cellSize + GAP}
cellHeight={cellSize + GAP}
>
{({ rowIndex, colIndex }) => (
<Cell index={rowIndex * columns + colIndex}/>
)}
</VGrid>
) |
Beta Was this translation helpful? Give feedback.
Answered by
inokawa
Mar 8, 2024
Replies: 1 comment 4 replies
-
experimental_VGrid is experimental component and it may not work in some situations. I can't understand the exact situation without reproduction, but probably growing cell is not supported. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for your clarification. For list virtualization, similar situation is supported with
WindowVirtualizer
but not supported for grid yet.