fix: Heading anchors sometimes do not scroll to correct location.

I don't know why moving this below the editor works, but it does – very reliably
closes #8296
This commit is contained in:
Tom Moor
2025-02-12 00:03:55 -05:00
parent 205ca03ced
commit 59fa91413d

View File

@@ -542,14 +542,6 @@ class DocumentScene extends React.Component<Props> {
</RevisionContainer>
) : (
<>
{showContents && (
<ContentsContainer
docFullWidth={document.fullWidth}
position={tocPos}
>
<Contents />
</ContentsContainer>
)}
<MeasuredContainer
name="document"
as={EditorContainer}
@@ -600,6 +592,14 @@ class DocumentScene extends React.Component<Props> {
) : null}
</Editor>
</MeasuredContainer>
{showContents && (
<ContentsContainer
docFullWidth={document.fullWidth}
position={tocPos}
>
<Contents />
</ContentsContainer>
)}
</>
)}
</React.Suspense>