We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b35b97 + 564ea9e commit a43e2efCopy full SHA for a43e2ef
forms-flow-nav/src/root.component.js
@@ -39,12 +39,12 @@ export default function Root(props) {
39
}, []);
40
41
useEffect(() => {
42
- const headerHeight = headerRef.current?.offsetHeight || 0;
43
- const totalHeight = `calc(100% - ${headerHeight}px)`;
44
- setSidenavHeight(totalHeight);
45
if (hasMultitenancyHeader) {
46
StyleServices?.setCSSVariable("--client-nav", "3rem");
47
}
+ const headerHeight = headerRef.current?.offsetHeight || 0;
+ const totalHeight = `calc(100% - ${headerHeight}px)`;
+ setSidenavHeight(totalHeight);
48
}, [ hasMultitenancyHeader ]);
49
50
return (
0 commit comments