-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Extends beyond height of page after selecting on IE #2185
Comments
What version of IE? |
I'm working on IE 10, thanks. |
Seems to happen in IE 11 too, which has all the latest updates. |
Occurs in IE8 as well. If you click anywhere on the page, it shifts back down. The main issue with me is that it not only shifts up but it seems to block other click events on the page until second click. (after the first click that shifts the input box back down.) |
I needed to present a demo, so I worked up a quick, and dirty hack that fixed the issue for IE8. I did not test this for other versions of IE. Add the line:
To "search_results_mouseup" function in chosen.jquery.js right before it returns. I'm using Version 1.4.1 and the end result of the function looks like this:
I've ran into one instance in the past where IE8 did not draw a DOM change from JS until another DOM update occurred. Adding a class to the body forces it to redraw. I don't like this fix, so hopefully someone else with more knowledge of chosen will come up with something better but this will work for me until then. I love chosen, great work! |
I tried the solution mentioned above (body class add/remove) but it didn't work for me. I was able to find a new solution though.
In the code above, 'content' is an empty string on some occasions. Those situations trigger the page height bug IE. However, for example an empty div won't trigger the bug. So I changed the code to this:
Now I can call .trigger('chosen:updated') and the page height bug doesn't occur anymore. I've tested this on IE8 IE9 IE10 and IE11. |
+1 |
2 similar comments
+1 |
+1 |
Dear,
I'm facing an issue: the page extends beyond height after selecting on web browser IE, please take a look in the source code below:
http://jsfiddle.net/cwd7w3rm/4/
Could you please help to give me solutions to solve this issue.
Many Thanks,
Phu Dang.
The text was updated successfully, but these errors were encountered: