mattmc3 commented on code in PR #44807:
URL: https://github.com/apache/superset/pull/44807#discussion_r4139197930


##########
superset-frontend/packages/superset-ui-core/src/components/Table/VirtualTable.tsx:
##########
@@ -183,6 +183,12 @@ const VirtualTable = <RecordType extends object>(
       (lastColumn.width as number) + Math.floor(tableWidth - totalWidth);
   }
 
+  // Size the antd header to the Grid's columns, not a viewport-wide scroll.x.
+  const columnsWidth = mergedColumns.reduce(
+    (sum, column) => sum + ((column.width as number) || 0),
+    0,
+  );
+

Review Comment:
   It now sums only numeric widths. VirtualTable already assumed numeric widths 
elsewhere, but there's no reason to make it worse. Added a test.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to