Resize editor on window resize
The ace editor should adapt in height with the size of the window.
Submitted by Elmer van Chastelet on 16 January 2015 at 11:48
Issue Log
The adapting editor widget is a good start. But not quite there yet:
The fixed navigation bar causes the page to have a vertical scroll; there is no need for a fixed menu bar; it does not provide tools that need to be accessed while reading a page.
The resizing of the editor widget does not take into account the console. At least on Firefox the editor stretches all to the bottom leaving room only for the buttons, but not for the console div, which again causes a vertical scroll.
The assignment pane on the left should always have the same size as the editor pane. If it is smaller it should just stretch. If it is larger it should have an internal vertical scroll bar.
I cannot add an attachment; I’ll send you a screenshot.
The resizing of the editor widget does not take into account the console. At least on Firefox the editor stretches all to the bottom leaving room only for the buttons, but not for the console div, which again causes a vertical scroll.
You mean that you need to scroll vertically when the page (non-fullscreen mode) has loaded? The size of the editor is set so, that you can fill the screen with the editor + console with buttons. But indeed, you need to perform a vertical scroll first. I already added code for auto-scroll to editor pane, but I think the page should be loaded without autoscroll such that the progress bar and tool buttons are visible. What do you prefer?
The entire page should be visible without vertical scroll bar. That means that vertical scroll in the editor does not accidentally cause scrolling of the page and that the console is always visible. When the grading checklist is active, that should be in the visible page as well. In a next version, when space is available, the console and checklist could be shown on the right of the editor tabs.
I leave this optimization to next release with more responsive stuff. For now I redeploy a version which auto scrolls when focussing on an ace editor.
Log in to post comments