Take page offset into account when placing cursor

Fixes #194