New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gutter issues after the change "Add coverGutterNextToScrollbar option" #1498
Comments
Could you give me a minimal html page that helps reproduce the problem? Or alternatively, can you see whether adding a third argument, |
Here is an example which runs from the codemirror/demo directory. With CM v3.12 it works as expected but after
|
Looking at your other suggestions:
The problem seems to be in the left position of the CodeMirror-gutters element, for example here it is with the problem but when you click the "set gutter" button a second time, it changes to 0px:
|
Thanks for the reproduction code. See attached patch for a fix. |
Thank you for the quick fix and confirming that gutters are agaiin working as expected. |
Applies to commit 9d92920
I'm attempting to enable "lintWith" for javascript files but not for HTML. With any commit between v3.12 and the commit before this one, I could switch between file types. From this commit onwards, the gutters are initially drawn incorrectly as shown in the screenshots. If you reload the file, it is then drawn correctly. This is a single instance of the editor. The tabs switch between two documents using cm.swapDoc (which works brilliantly). However these screenshots are immediately after reloading the file. The loading sequence is:
It seems that this change has altered the way the gutter widths are calculated
The text was updated successfully, but these errors were encountered: