Skip to content

Commit 3e487d3

Browse files
committed
Quick Fix: Increase margin in calculateEditorHeight
In some cases, the left sidebar was too high, causing an undesired scroll bar to be displayed. We increase the magic number to hide the scrollbar in more cases. This is not a proper solution, but enough to hide the scroll bars once again. We need to investigate further.
1 parent 79a79e6 commit 3e487d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/javascripts/editor/editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ var CodeOceanEditor = {
242242
}
243243

244244
const bottom = considerStatusbar ? ($('#statusbar').height() || 0) : 0;
245-
// calculate needed size: window height - position of top of ACE editor - height of autosave label below editor - 5 for bar margins
246-
return window.innerHeight - jqueryElement.offset().top - bottom - 5;
245+
// calculate needed size: window height - position of top of ACE editor - height of autosave label below editor - 7 for bar margins
246+
return window.innerHeight - jqueryElement.offset().top - bottom - 7;
247247
},
248248

249249
resizeParentOfAceEditor: function (element) {

0 commit comments

Comments
 (0)