Correct placement of markers when not scrolling

This fixes #1304.

@devoncarew