css - Chrome: mouse hover on some elements causes vertical scrollbar to jump to the top -


i have application contains vertical scrollbar on page because 1 of 2 lists on page can long , want user scroll or down. found user hovers mouse on other elements on page , if scroll bar @ bottom, chrome causes scrollbar jump top.

has seen behavior in chrome? works fine other browsers. tried changing bottom padding on 1 of header div elements:

padding: 0.75em 2em 1.75em 2em; 

and seems have reduced problem, problem still occurs occasionally. 1 thing notice occurs when 1 of lists long.

it turned out css problem. whenever, element hovered, css added box-shadow on element using :hover selector. caused border increase , caused list change size. when removed box-shadow, problem went away. not chrome problem.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -