Reveal cursor on panel expand

@peterflynn Simple fix for issue #3003, and (nearly) identical to closed and outdated pull request #3931.
`panelHeight` is no longer used.
`scrollToCursor` should probably be renamed to `revealCursor`. It's proper specification would be `revealCursor:boolean=`