Ticket #10854 (closed bug: notabug)
Problem with .hover() and IE9
| Reported by: | zeljko | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | effects | Version: | git |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I have a strange problem with .hover() and IE9. When I create div with a scroll bar and inside that div when I use hover to toggle inner div class I see that outer div is expanding on every mouseenter/leave.
Fiddle: http://jsfiddle.net/vhkfg/4/
Try to move mouse over "test" word few times and see how outer div is expanding. Only in IE9.
Change History
comment:1 Changed 18 months ago by dmethvin
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to effects
- Milestone changed from None to 1.next
comment:3 Changed 14 months ago by anonymous
It's a known issue with IE9, hover styles and containers with scroll bars: http://stackoverflow.com/questions/7445750/ie9-link-hover-css-color-change-vertical-shift http://stackoverflow.com/questions/5788726/add-remove-css-will-cause-ie9-to-increase-the-tables-height http://blog.brianrichards.net/post/6721471926/ie9-hover-bug-workaround
Adding "min-height: 0%" to the outer div should fix the issue.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

It's not the hover part, because this does it too:
http://jsfiddle.net/dmethvin/vhkfg/8/
Looks like the toggling code in 1.7 is calculating the height wrong, it could be because of the scroll bar.