.codemirrorparent { transform: rotateY(180deg); } at initialization results in incorrect initial line number position. #2444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The issue is the result of this call returning an "incorrect" value:
github.com/marijnh/CodeMirror@17a9de99ed/lib/codemirror.js (L592)Reduced test case:
Issue exists identically in Firefox, Chrome, and Safari. Untested elsewhere.
NOTE: If you're testing this in Chrome you will run into this bug:
https://code.google.com/p/chromium/issues/detail?id=359657
Duplicate of #2443
I didn't call it a duplicate because (from what I can tell) it's a different calculation function:
cursorCoords()as compared togetDimensions().From my quick glance over the code they aren't dependent upon each other. To make a general "works with transforms" fix we'd need to do both of these.
Ah, the body text of the issue was so similar to the other bug that I assumed you double-submitted.
Still, the underlying issue is exactly the same, so I suggest we do move discussion to the other issue entirely.
Okay, I'll rename the other bug to be a bit more inclusive. :)
FYI - if CM is ever going to function properly on Android or iOS devices with scaling enabled, this is a problem that's going to have to be solved. My time has been completely eaten since I began working on the iOS plugin, but a large chunk of that code came from having to work around this exact issue.