Skip to content

Commit 5e21750

Browse files
authored
fix(AnalyticalTable): show all columns in Dialog (#722)
closes #719
1 parent 512152e commit 5e21750

File tree

1 file changed

+3
-2
lines changed
  • packages/main/src/components/AnalyticalTable

1 file changed

+3
-2
lines changed

packages/main/src/components/AnalyticalTable/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useIsomorphicLayoutEffect } from '@ui5/webcomponents-react-base/lib/hooks';
12
import { StyleClassHelper } from '@ui5/webcomponents-react-base/lib/StyleClassHelper';
23
import { createComponentStyles } from '@ui5/webcomponents-react-base/lib/createComponentStyles';
34
import { usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/lib/usePassThroughHtmlProps';
@@ -282,7 +283,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
282283
if (tableRef.current) {
283284
dispatch({ type: 'TABLE_RESIZE', payload: { tableClientWidth: tableRef.current.clientWidth } });
284285
}
285-
}, []);
286+
}, [tableRef.current]);
286287

287288
useEffect(() => {
288289
// @ts-ignore
@@ -293,7 +294,7 @@ const AnalyticalTable: FC<TableProps> = forwardRef((props: TableProps, ref: Ref<
293294
};
294295
}, [updateTableClientWidth]);
295296

296-
useEffect(() => {
297+
useIsomorphicLayoutEffect(() => {
297298
updateTableClientWidth();
298299
}, [updateTableClientWidth]);
299300

0 commit comments

Comments
 (0)