Skip to content

Commit 003a270

Browse files
Merge pull request #149 from linked-planet/dev
Fix top navigation height calculation in AppLayout to prevent page mo…
2 parents fec2a49 + 342a253 commit 003a270

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/src/layouting/AppLayout.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@ export function initTopNavigationHeight() {
2727
)
2828
return
2929
}
30-
const topNavHeight = topNav[0].clientHeight
30+
let topNavHeight = topNav[0].clientHeight
31+
topNavHeight = 0 // this seems to be wrong and moving the page downwards
3132
if (topNavHeight) {
32-
console.info("UIKitTs - Top navigation height set to:", topNavHeight)
3333
document.documentElement.style.setProperty(
3434
topNavigationHeightVar,
35-
//`${topNavHeight}px`, // this seems to be wrong and moving the page downwards
36-
"0",
35+
`${topNavHeight}px`,
3736
)
3837
}
3938

0 commit comments

Comments
 (0)