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

Auto resize demo scrolling issue #3361

Closed
maniax89 opened this issue Jul 6, 2015 · 0 comments
Closed

Auto resize demo scrolling issue #3361

maniax89 opened this issue Jul 6, 2015 · 0 comments

Comments

@maniax89
Copy link

maniax89 commented Jul 6, 2015

Couldn't find an exact issue already opened for this. Things that looked similar included #2368 and potentially when fixing #1514

Basically, if you go to the resize demo http://codemirror.net/demo/resize.html and delete one line and try to scroll using a touchpad or mousewheel inside the codemirror, the numbers and textarea will scroll.

Expected: It shouldn't scroll since no scrollbars are present.

Steps to reproduce:

  1. Go to http://codemirror.net/demo/resize.html (has the codemirror height set to auto)
  2. Delete a line so that the total number of lines is less than what you started with
  3. While focused on the code mirror text area, hover the mouse over that area.
  4. Scroll (either using a touch pad or mouse wheel) - content will scroll beyond the visible area

I believe it is due to the height of the gutters being set to be larger than the box itself - but those who have been working on the issue may have better insight to the issue.

I have reproduced this on Mac OSX 10.9.5 on the following browsers:

  1. Chrome 43.0.2357.130 (64-bit)
  2. Firefox 36.0.1
  3. Safari 7.1.3

I also ran Windows 7 on a VM and was able to reproduce it on:

  1. IE 9
  2. Firefox 38.0.5
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

Successfully merging a pull request may close this issue.

1 participant