Make sure the link view appears correctly when the editor has scrolled.

Fixes #1139