0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 00:42:40 +00:00

Merge pull request #4450 from dbolack-ab/issue_2963

Keep the cursor in the active view page after a divider width change.
This commit is contained in:
Trevor Buckner
2025-10-13 13:40:47 -04:00
committed by GitHub

View File

@@ -409,7 +409,6 @@ const Editor = createClass({
//Called when there are changes to the editor's dimensions
update : function(){
this.codeEditor.current?.updateSize();
const snipHeight = document.querySelector('.editor > .snippetBar').offsetHeight;
if(snipHeight !== this.state.snippetbarHeight)
this.setState({ snippetbarHeight: snipHeight });