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

Scrolling reset on close. #980

Closed
kvpt opened this issue Mar 5, 2013 · 6 comments
Closed

Scrolling reset on close. #980

kvpt opened this issue Mar 5, 2013 · 6 comments
Milestone

Comments

@kvpt
Copy link

kvpt commented Mar 5, 2013

When Select2 is in an overflow container, close Select2 reset the scroll to the left.

I make a fiddle to show the issue :

  1. Scroll to the right
  2. Open Select2
  3. Close Select2
  4. The scroll is reset to the left

http://jsfiddle.net/2sytg/

This issue is not present in 3.2 version.

@ova2
Copy link

ova2 commented Mar 9, 2013

Bad bug indeed. Was the bug introduced in the last Select2 version?

@kvpt
Copy link
Author

kvpt commented Mar 9, 2013

After test in jsfiddle, this bug is introduced by 3.3.1 version.

EDIT : Precisely by commit ef364d2

@ivaynberg
Copy link
Contributor

fixed with fb158ed

@ruudvanderweijde
Copy link

This fix causes a dotted focus line in IE8.

See these images:
1 http://s18.postimg.org/ngpkm24x5/select2.png
2 http://s13.postimg.org/4gcffb54n/select2_2.png

The issue seems to be solved when I set "left: -10000px;" back in this change:
ivaynberg@fb158ed

@ova2
Copy link

ova2 commented Apr 17, 2013

Can it not be fixed with CSS?

outline: none

@ruudvanderweijde
Copy link

It even happens when there is no search bar visible.

On what element/class should I set the outline:none? I tried to, but was not able to successfully do so.

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