Summary
When the console panel is toggled open or closed, the code editor above it shifts position. After the toggle, the editor cannot be scrolled back to the correct position — the layout breaks until the window is resized or the app is reloaded.
Steps to reproduce
- Open Score Studio with a song loaded
- Open the console panel (bottom of the screen)
- Edit code in the editor — scroll down to see lower lines
- Toggle the console closed
- The editor jumps up — scroll position is lost and the top of the editor is partially off-screen or clipped
Expected
- Console toggle should not affect editor scroll position
- The editor panel height should recalculate smoothly when the console opens/closes
- No layout shift — flex/grid layout should absorb the height change
Likely location
packages/gui/src/renderer/components/LiveCode/ — the layout container that holds the editor and console as a split. The resize/collapse animation may not be triggering a CodeMirror/Monaco layout recalculation.
Notes
- This is especially bad when working in long song files — losing scroll position mid-edit breaks flow
- Check if
editor.layout() (Monaco) or equivalent is called after the console height changes
- May need a
ResizeObserver on the editor container to auto-recalculate
Related: the instrument panel and import toggle may have the same class of bug.
Summary
When the console panel is toggled open or closed, the code editor above it shifts position. After the toggle, the editor cannot be scrolled back to the correct position — the layout breaks until the window is resized or the app is reloaded.
Steps to reproduce
Expected
Likely location
packages/gui/src/renderer/components/LiveCode/— the layout container that holds the editor and console as a split. The resize/collapse animation may not be triggering a CodeMirror/Monaco layout recalculation.Notes
editor.layout()(Monaco) or equivalent is called after the console height changesResizeObserveron the editor container to auto-recalculateRelated: the instrument panel and import toggle may have the same class of bug.