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

CodeMirror-gutter Re-size #3781

Closed
wissamsaikali opened this issue Jan 19, 2016 · 7 comments
Closed

CodeMirror-gutter Re-size #3781

wissamsaikali opened this issue Jan 19, 2016 · 7 comments

Comments

@wissamsaikali
Copy link

i am using the merge plugin. ( https://codemirror.net/demo/merge.html )

Scenario :
1 - Write a long commands on the same line
2- try to scroll right than left
3- gutters will move

Please check the attached files
i've tried to refresh the editor but it didn't worked .
how can i fix this ?

Thank you
Regards
screencapture-codemirror-net-demo-merge-html-1453211741453

@marijnh
Copy link
Member

marijnh commented Jan 20, 2016

Hi. This does not happen for me on Chrome. Which browser / version are you using?

@wissamsaikali
Copy link
Author

Hey, i am using Version 47.0.2526.111 (64-bit) on ubuntu

On Wed, Jan 20, 2016 at 11:54 AM, Marijn Haverbeke <[email protected]

wrote:

Hi. This does not happen for me on Chrome. Which browser / version are you
using?


Reply to this email directly or view it on GitHub
#3781 (comment)
.

@marijnh
Copy link
Member

marijnh commented Jan 20, 2016

Hm, that's exactly what I'm using. Could you describe your steps in more detail? When I go to the merge demo page, and scroll either of the editors right and then left, the gutter stays in place.

@wissamsaikali
Copy link
Author

  1. Go the merge demo page
  2. Keep adding additional characters at the end of any line till the
    scrollbar on the left editor becomes clearly smaller than the one on the
    right
  3. Now when you scroll left and right on the left editor you will notice
    that the gutter will shift to the right

PS: this issue appears on Chrome Windows as well.

Thank you

On Wed, Jan 20, 2016 at 12:03 PM, Marijn Haverbeke <[email protected]

wrote:

Hm, that's exactly what I'm using. Could you describe your steps in more
detail? When I go to the merge demo page, and scroll either of the editors
right and then left, the gutter stays in place.


Reply to this email directly or view it on GitHub
#3781 (comment)
.

@kepta
Copy link

kepta commented Jan 22, 2016

+1, I was able to reproduce it on
Browser Firefox
Mac

@rtparsons
Copy link

Pull request to fix this #3788

@marijnh
Copy link
Member

marijnh commented Jan 24, 2016

The editor was clipping the horizontal scroll position wrong, leading to it believing it was setting its horizontal scroll somewhere the DOM wouldn't allow it to, confusing the gutter alignment code.

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

4 participants