rusackas commented on code in PR #20833:
URL: https://github.com/apache/superset/pull/20833#discussion_r931431271


##########
superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx:
##########
@@ -526,6 +541,41 @@ export default function TableChart<D extends DataRecord = 
DataRecord>(
     [setDataMask],
   );
 
+  const handleSizeChange = useCallback(
+    ({ width, height }: { width: number; height: number }) => {
+      setTableSize({ width, height });
+    },
+    [],
+  );
+
+  useLayoutEffect(() => {
+    // After initial load the table should resize only when the new sizes
+    // Are not only scrollbar updates, otherwise, the table would twicth

Review Comment:
   Appreciate the comments! This helps SOOOO much.



-- 
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