layout: fix getViewportRect adds page scroll offset twice