Skip to content

Zoom offsets the visible cursor #26151

@W4RH4WK

Description

@W4RH4WK

I recently noticed a bug where the visible editing cursor and selection are offset to where VSCode thinks the cursor is. This happens when zooming in and seems to be dependent on the font you are using.

The bug happens for me when using the Hack Font under Linux. Using that font under Windows did not result in an offset of the cursor / selection. Using Ubuntu Mono as my font did not trigger the bug, nor was increment the font size instead of zooming.

The following pictures illustrate the issue:

Correct selection using Ubuntu Mono:
no_offset_far_right

Offset selection using Hack:
offset_far_right

In both cases node.getRight() has been selected and hitting backspace will delete it.

This also happens around the 80 column mark, not just far to the right, note the cursor ontop of the equal sign:
offset

  • VSCode Version: 1.12.1
  • OS Version: Ubuntu 16.04 LTS

Steps to Reproduce:

  1. Setup VSCode to use Hack as font.
  2. Open a file with content.
  3. Zoom (bug may only trigger on some zoom levels).
  4. Select text.

Maybe Related:

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-coreEditor basic functionalitylinuxIssues with VS Code on LinuxverifiedVerification succeededzoomVS Code window zoom issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions