Fix gutter width compensation in calculateScrollPos

Issue #2745