Cannot initially scroll completely right in editor view #142
Comments
Thanks for submitting, I'll take a look at it tomorrow. What web browser are you using?
|
Firefox 28.0. |
Is Wordwrap initially enabled when you see this? Edit: Nevermind, it must've been off in this case. Anyways, this looks like it could be a CodeMirror issue, it's just strange I've never noticed in my Firefox (I'm using versions 29 and 31). @PoorDog: One last question: Which OS is this on? |
@silverwind, I had the same issue in Firefox 28 across Windows 8.1, Fedora 20, and OS X 10.7. The first time I tried in Fedora, everything actually worked perfectly right away, but when I closed the browser, reopened, and tested again, I had the issue. There are no special steps to replicate - just open the demo page you put up, click the actions menu for a file, select edit, and try to scroll as far right as you can. |
Alright, thanks for the detailed explanation, really appreciate it. |
Ok, I can reproduce it. The issue wasn't visible to me before because I had vertical scrollbars hidden through browser-chrome. I think we need to somehow initialize/refresh CodeMirror's viewport after load, maybe it's not calculating the scrollable area correctly on initial load. |
Initial testing shows that |
Funnily, when scrolling through a file like I'm pretty certain now that CodeMirror interprets the visible area wrongly. |
Don't set view port infinity. That renders the entire document in Dom at
|
I'm a bit out of ideas regarding this, I checked the viewport event, and it seems to load the correct range of lines, but still, the vertical scrollbar jumps like mad when scrolling. The demo on CM's page doesn't show that behaviour. Maybe it's somehow related to our styling. |
I don't know what magic you worked here, but this lookes fixed! |
I am going to guess that it might have been as simple as an
|
This is assuming the demo website is using an up-to-date version of droppy (haven't tested on my server yet).
Some of the longer lines of text get cut off in the editor view. Toggling word wrap on and then off again seems to fix the problem until the page is refreshed/closed and then reopened. It looks like I can't scroll completely to the right initially.
The top of this image shows what it first looks like when I try to scroll as far right as possible. The bottom is how it appears after toggling word wrap on and then off again, and then scrolling as far right as possible.
The text was updated successfully, but these errors were encountered: