793dc20722
* linter and compact layout improvements Closes #748 While investigating the best way to fix linter scrolling, when I double-checked the compact layout, an old bug I meant to fix a long time ago was immediately apparent. Basically, the linter adds/removes errors as you type, causing the editor to bounce up and down, making it practically unusable. This PR fixes scrolling, and also collapses options and the linter in the compact layout, but always shows the collapsed linter so you're aware of the error count without the content jumping. It also collapses options in the non-compact layout if the viewport is too short to accommodate them, factoring in the min-height of the linter. All automatic collapsing factors in whether a linter is active so they can adjust accordingly, and disables the setting of collapsed state prefs, since we're deciding the pref anyway, and this allows for re-expanding on resize based on the previous pref. It's quite possible I failed to account for certain scenarios, so try to break it. Also think it's problematic for the linter to not always be visible if enabled, so I hooked up a 40px fixed header on scroll with just the linter in it for the compact layout. A few other little details are included. I removed redundant line and column numbers spelled out at the end of lint messages to prevent horizontal overflow. I noticed that the expand/collapse prefs do not toggle correctly when clicking directly on the details-marker arrow. Simplest solution was covering them with the `h2` (we may wanna hook up the manager as well). Also, unrelated, but I switched to opacity to hide resizing sectioned editors, because `visibility: hidden;` breaks editor auto-focus. If either of you guys wanna fix any bugs, or improve any code, feel free to just commit to this PR directly. * linter and compact layout improvements * linter and compact layout improvements * No usercss scroll listener and delay header check * Some code tweaks |
||
---|---|---|
.. | ||
applies-to-line-widget.js | ||
beautify.js | ||
codemirror-default.css | ||
codemirror-default.js | ||
codemirror-factory.js | ||
codemirror-themes.js | ||
colorpicker-helper.js | ||
edit.css | ||
edit.js | ||
editor-worker.js | ||
global-search.css | ||
global-search.js | ||
linter-config-dialog.js | ||
linter-defaults.js | ||
linter-engines.js | ||
linter-help-dialog.js | ||
linter-meta.js | ||
linter-report.js | ||
linter.js | ||
live-preview.js | ||
refresh-on-view.js | ||
regexp-tester.js | ||
reroute-hotkeys.js | ||
sections-editor-section.js | ||
sections-editor.js | ||
show-keymap-help.js | ||
source-editor.js | ||
util.js |