Scrolls an element into view if possible