Skip to content
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

[v3] right click in editor bug #831

Closed
peterkroon opened this issue Sep 16, 2012 · 2 comments
Closed

[v3] right click in editor bug #831

peterkroon opened this issue Sep 16, 2012 · 2 comments

Comments

@peterkroon
Copy link
Contributor

Uncaught TypeError: Cannot read property 'maxLineChanged' of undefined  codemirror.js:952
if (view.maxLineChanged && !cm.options.lineWrapping) {
    //Uncaught TypeError: Cannot read property 'maxLineChanged' of undefined
    var width = measureLine(cm, view.maxLine, view.maxLine.text.length).left;
    display.sizer.style.minWidth = (width + 3 + scrollerCutOff) + "px";
    view.maxLineChanged = false;
}
@0b10011
Copy link
Contributor

0b10011 commented Sep 16, 2012

Note: This is only in Chrome. In Firefox, you receive:

TypeError: e is undefined

function e_target(e) {return e.target || e.srcElement;}

codemirror.js (line 3445)

@0b10011
Copy link
Contributor

0b10011 commented Sep 16, 2012

I have a fix for this, will submit as a pull request in a few. But first, I'm going to try to fix the bug in Firefox as well, and submit it in the same pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants