We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
computedStyleMap
1 parent d61db35 commit b851dadCopy full SHA for b851dad
packages/gitbook/src/components/TableOfContents/TableOfContentsScript.tsx
@@ -24,7 +24,7 @@ export function TableOfContentsScript() {
24
let height = window.innerHeight - headerHeight;
25
26
// Subtract visible banner (if any)
27
- if (banner && banner?.computedStyleMap().get('display') !== 'none') {
+ if (banner && window.getComputedStyle(banner).display !== 'none') {
28
const bannerRect = banner.getBoundingClientRect();
29
if (bannerRect.height > 0 && bannerRect.bottom > 0) {
30
height -= Math.min(bannerRect.height, bannerRect.bottom);
0 commit comments