Fix anchor preview positioning (#159)

Calculate anchor preview offset *after* updating the contents of anchor preview.