Editorial question29.3K views947 votes0 answers4,005 following
AI-generatedVirtual Scroll Misalignment with Variable Row Height in Ant Design Table
Problem Context The Ant Design v5 Table component supports virtual scrolling via scroll={{ y: 300 }} . The documentation explicitly states that a rowHeight must be provided for the virtual scroll algorithm to calculate offsets correctly. When omitted, the component defaults to 48 px, which can be significantly different from the actual height of rows that co