Fix (Hack) awful glitch related to markdown content

This commit is contained in:
Sergio Padrino 2024-05-10 11:40:52 +02:00
parent 12973ae07a
commit 42fbe62b9d

View file

@ -291,7 +291,7 @@ export class SandboxedMarkdown extends React.PureComponent<
// Not sure why the content height != body height exactly. But we need to
// set the height explicitly to prevent scrollbar/content cut off.
const divHeight = this.contentDivRef.clientHeight
this.frameContainingDivRef.style.height = `${divHeight}px`
this.frameContainingDivRef.style.height = `${divHeight + 1}px`
this.props.onMarkdownParsed?.()
}