Factor in layout origin in calculating the current position.