1235739 Fix autoscroll to top in tables in IE

Authored and Committed by pvoborni 11 years ago
    Fix autoscroll to top in tables in IE
    
    In IE when a window is small (horizontal scrollbar is displayed) click or keyboard input on various parts of UI makes search tables scroll to top. It prevents from selecting items in a table. This issue happens when using absolute positioned element with overflow style. It's a bug in IE.
    
    Two workarounds were added to make UI usable in IE.
    Adding position:relative; style to body element fixes the problem in search pages. It doesn't help in association dialogs though.
    The bug doesn't occur when some child element has focus. It's possible to set focus to first visible checkbox while scrolling down but user experience is very bad. Better solution seems to scroll back when IE scrolls to top on mousedown. That way mouse click event happens on the target element and it can gain focus and therefore be selected. Some glitches still remains but is usable.
    
    https://fedorahosted.org/freeipa/ticket/2835
    
        
file modified
+1 -0
file modified
+12 -0