fix unwanted scrolling into view of hidden textarea
reset cached scroll values when resizing

this is needed since scrollTop of scrollbar element can be reset to 0
when ace is moved in the document.
fix focusing window with click on ie