forked from Gitlink/forgeplus-react
代码库二级issue滚动条
This commit is contained in:
parent
f989e62702
commit
fb05890701
|
@ -52,7 +52,6 @@ class m_editor extends Component {
|
||||||
|
|
||||||
const handleEditorMount = (editor, monaco) => {
|
const handleEditorMount = (editor, monaco) => {
|
||||||
editor.onDidChangeModelDecorations(() => {
|
editor.onDidChangeModelDecorations(() => {
|
||||||
updateEditorHeight(); // typing
|
|
||||||
requestAnimationFrame(updateEditorHeight); // folding
|
requestAnimationFrame(updateEditorHeight); // folding
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -84,6 +83,8 @@ class m_editor extends Component {
|
||||||
editor.layout();
|
editor.layout();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
updateEditorHeight(); // typing
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue