mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 18: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:
@@ -409,7 +409,6 @@ const Editor = createClass({
|
|||||||
|
|
||||||
//Called when there are changes to the editor's dimensions
|
//Called when there are changes to the editor's dimensions
|
||||||
update : function(){
|
update : function(){
|
||||||
this.codeEditor.current?.updateSize();
|
|
||||||
const snipHeight = document.querySelector('.editor > .snippetBar').offsetHeight;
|
const snipHeight = document.querySelector('.editor > .snippetBar').offsetHeight;
|
||||||
if(snipHeight !== this.state.snippetbarHeight)
|
if(snipHeight !== this.state.snippetbarHeight)
|
||||||
this.setState({ snippetbarHeight: snipHeight });
|
this.setState({ snippetbarHeight: snipHeight });
|
||||||
|
|||||||
Reference in New Issue
Block a user