remove unused vars
When selecting items from the outline, scroll the document in the visual
editor so that they are in view.  Fixes #1462