Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menu is positioned wrongly when zoomed in #821

Closed
joaomoreno opened this issue Nov 30, 2015 · 1 comment
Closed

Context menu is positioned wrongly when zoomed in #821

joaomoreno opened this issue Nov 30, 2015 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Milestone

Comments

@joaomoreno
Copy link
Member

When I zoom in (using Ctrl+Shift++) the context menu that is shown when I right click somewhere is displayed in the wrong place. I attached two images one without any zoom where the menu is displayed correctly in the second one how is displayed after pressing Ctrl+Shift++ twice. In both cases the click is where the text cursor is.

Some information about my environment: This is under Windows 10. I'm using two monitors both with scaling of 125% (by that I mean the option named "change size of text apps and other items" in the diplay settings ) and the resolutions of the displays are 2560x1440 and 1080x2024.

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Nov 30, 2015
@egamma egamma modified the milestone: Backlog Dec 10, 2015
@massimocode
Copy link

I can confirm this happens for me as well. I am using Mac OS X. The operating system's display scaling is off (i.e. 1:1). I have been experimenting and it seems as though the bug is that the right click menu is displayed according to the cursor position, but this calculation is not adjusted to take into account zoom.

The reason I say this is because if I right click near the top left of the editor, the cursor is quite close to the top left of the menu. But if I right click near the bottom right of the editor, the cursor is much further away from the top left of the menu. The misalignment is proportional to the distance from the top left of the editor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug upstream Issue identified as 'upstream' component related (exists outside of VS Code) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants