fix(anchorScroll): find offset of nested elements correctly

Closes #618