Calculate anchor preview offset after updating contents of anchor preview. Issue #159
merge conflict
Merge pull request #160 from yacomink/master

Fix anchor preview positioning (#159)