Skip to content

Not all rulers are being displayed when using zoom level less than 0 #9634

Closed

Description

@johncruise
  • VSCode Version: 1.4.0-insider (2016-07-22T05:07:03.113Z)
  • OS Version: Windows 7

Steps to Reproduce:

  1. In settings, setup editor.rulers to [71, 99]
  2. Setup window.zoomLevel to -1
  3. Setup editor.fontSize to 13
  4. Reload Window
  5. Open any file
  6. Open split editor window (ctrl+)

After above, most of the time the 2nd ruler at the left window does not show up. This only started manifesting on newer version (no problem with older version)

Activity

  1. kieferrm commented on Jul 25, 2016

    @kieferrm
    Member

    It seems that there are general issues with multiple rulers when the zoom level is -1 depending on how wide an editor is.

    3vqqhsyx0m

  2. johncruise commented on Jul 25, 2016

    @johncruise
    Author

    Thank you for confirming. The show-and-tell screenshot is very informative RE: how to get around this. Unfortunately, in my environment the left pane doesn't show the other ruler no matter how I resize the width. What I end up doing (to get a side-by-side code experience) is open the 3rd/last editor pane and minimize the width of the left most. Ugly solution but it works.

    Please keep the bug open until there's a permanent fix. Thanks for the support.

  3. alexdima commented on Aug 16, 2016

    @alexdima
    Member

    I think this is how Chromium deals with a 1px vertical line when it is zoomed below 100%. My recommendation is to not use window.zoomLevel.

  4. added
    bug
    upstream
    on Aug 16, 2016
  5. johncruise commented on Aug 17, 2016

    @johncruise
    Author

    Not using window.zoomLevel as a solution is not enticing in my case. The reason why I use it is because all the window component of vscode are a tad big for my taste (icons, folder or solution view, etc) and although I like to see them all the time so I can navigate through my files, they are just taking too much space.

    I will only go back to 100% zoom level if there's a way for me to customize font size of the other elements of the window that is not tied up to the editor window's font.

    Nevertheless, thanks for the follow up.

  6. alexdima commented on Aug 17, 2016

    @alexdima
    Member

    👍 I would also like a way to customize the font size of other elements of the window. Please create an issue for that so I can upvote it :). The zoom level is a cheap trick that causes multiple problems, such as this one, or breaking antialising, etc.

  7. johncruise commented on Aug 17, 2016

    @johncruise
    Author

    I'll create one. Thanks for the recommendation.

  8. added
    zoom
    on Sep 12, 2016
  9. eldarshamukhamedov commented on Nov 26, 2016

    @eldarshamukhamedov

    Here is John Cruz (@johncruise)'s followup ticket: #10605. How do you guys feel about allowing the ruler width to be styled via themes? Could be a quick fix for the relatively small group of users who are affected by this.

  10. added
    electron
    on Mar 9, 2017
  11. removed
    bug
    on May 19, 2017
  12. alexdima commented on Jun 14, 2017

    @alexdima
    Member

    The same happens when using for example the Zoom Level on Windows to something like 125%. Some rulers are 1px wide and some are 2px wide depending on how the rulers align with the screen pixels:

    image

    When Windows is set to 125% and window.zoomLevel: -2:

    image

    Thanks to the help from fj128 in discussions in #28542 , we have a plan on how to workaround this.

  13. alexdima commented on Jun 14, 2017

    @alexdima
    Member

    With the technique discussed in #28542:

    When Windows is set to 125% and window.zoomLevel: 0:
    image

    When Windows is set to 125% and window.zoomLevel: -2:
    image

  14. added
    bug
    on Jun 14, 2017
  15. KernelDeimos commented on Jul 2, 2017

    @KernelDeimos

    Why is this closed? I have no idea what to do about this. Is it possible to configure the thickness of the ruler?

  16. fj128 commented on Jul 2, 2017

    @fj128
  17. locked and limited conversation to collaborators on Nov 17, 2017
  18. added a commit that references this issue on Sep 6, 2026
    8c9d0f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugelectronupstreamverifiedzoom

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions