mirror of
https://github.com/desktop/desktop
synced 2024-10-30 06:03:10 +00:00
Document hack
This commit is contained in:
parent
42fbe62b9d
commit
d3e8913885
1 changed files with 2 additions and 0 deletions
|
@ -290,6 +290,8 @@ 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.
|
||||
// HACK: Add 1 to the new height to avoid UI glitches like the one shown
|
||||
// in https://github.com/desktop/desktop/pull/18596
|
||||
const divHeight = this.contentDivRef.clientHeight
|
||||
this.frameContainingDivRef.style.height = `${divHeight + 1}px`
|
||||
this.props.onMarkdownParsed?.()
|
||||
|
|
Loading…
Reference in a new issue