|
|
@@ -25,27 +25,30 @@ const TableOfContents = (props) => {
|
|
|
const containerElem = document.querySelector('#revision-toc');
|
|
|
const containerTop = containerElem.getBoundingClientRect().top;
|
|
|
|
|
|
- // window height - revisionToc top - .system-version height
|
|
|
- return window.innerHeight - containerTop - 20;
|
|
|
+ // window height - revisionToc top - .system-version - .grw-fab-container height
|
|
|
+ return window.innerHeight - containerTop - 20 - 155;
|
|
|
}, []);
|
|
|
|
|
|
const { tocHtml } = pageContainer.state;
|
|
|
|
|
|
return (
|
|
|
- <StickyStretchableScroller
|
|
|
- contentsElemSelector=".revision-toc .markdownIt-TOC"
|
|
|
- stickyElemSelector="#revision-toc"
|
|
|
- calcViewHeightFunc={calcViewHeight}
|
|
|
- >
|
|
|
- <div
|
|
|
- id="revision-toc-content"
|
|
|
- className="revision-toc-content"
|
|
|
+ <>
|
|
|
+ {/* TODO GW-3253 add four contents */}
|
|
|
+ <StickyStretchableScroller
|
|
|
+ contentsElemSelector=".revision-toc .markdownIt-TOC"
|
|
|
+ stickyElemSelector="#revision-toc"
|
|
|
+ calcViewHeightFunc={calcViewHeight}
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ id="revision-toc-content"
|
|
|
+ className="revision-toc-content"
|
|
|
// eslint-disable-next-line react/no-danger
|
|
|
- dangerouslySetInnerHTML={{
|
|
|
+ dangerouslySetInnerHTML={{
|
|
|
__html: tocHtml,
|
|
|
}}
|
|
|
- />
|
|
|
- </StickyStretchableScroller>
|
|
|
+ />
|
|
|
+ </StickyStretchableScroller>
|
|
|
+ </>
|
|
|
);
|
|
|
|
|
|
};
|