mirror of
https://github.com/desktop/desktop
synced 2024-09-13 21:31:32 +00:00
Fix (Hack) awful glitch related to markdown content
This commit is contained in:
parent
12973ae07a
commit
42fbe62b9d
|
@ -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?.()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue