Move cursor on panel expand

Adds a `panelExpanded` listener to the `listenToResize` function which scrolls back to reveal cursor when a panel is expanded.