properly calculate offsets for non-default view modes (closes #770)