Skip to content

Line thickness (cursor, indent guides) changes randomly when zoomed in/out #22904

Closed

Description

@joliss
  • VSCode Version: 1.10.2 (8076a19)
  • OS Version: macOS Sierra 10.12.3

Steps to Reproduce:

  1. Zoom out (in the settings it should say "window.zoomLevel": -1 or similar).
  2. Move the cursor around in a text file. The cursor will vary randomly between 1px and 2px in thickness (2 and 4 retina pixels).

cursor thickness

Activity

  1. changed the title [-]Cursor thickness changes randomly when zoomed in/out[/-] [+]Line thickness (cursor, indent guides) changes randomly when zoomed in/out[/+] on Mar 21, 2017
  2. joliss commented on Mar 21, 2017

    @joliss
    Author

    The same thing happens for indent guides. Here's a recording on a retina screen, zooming out from zoom level 2 to zoom level -3. Sometimes the thickness is inconsistent, sometimes the lines disappear completely:

    zoom recording

  3. added
    zoom
    upstream
    electron
    on Mar 27, 2017
  4. alexdima commented on Mar 27, 2017

    @alexdima
    Member

    If you care about pixel-perfect rendering (i.e. are not projecting to a live audience), then I can only suggest to never use zooming. i.e. use editor.fontSize instead. See also other issues tagged with zoom.

  5. added
    bug
    on Mar 27, 2017
  6. joliss commented on Mar 27, 2017

    @joliss
    Author

    Setting editor.fontSize is what I ended up doing. I do think it's an amazing feature to be able to just zoom the entire UI, if only there wasn't the line rendering issue.

    All the zoom-tagged issues seem to be duplicates of basically the same problem -- it's all about various lines disappearing. Maybe some of them (including this one?) can be closed.

  7. added
    *duplicate
    on Mar 27, 2017
  8. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicatebugelectronupstreamzoom

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions