-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
fix: account for page zoom factor in getBoundingClientRect #234970
base: main
Are you sure you want to change the base?
Conversation
6147fed
to
b52ebaf
Compare
Also looping in @benibenj, there is no urgency on this PR we can adopt it for January milestone. Looking at https://chromestatus.com/feature/5198254868529152 the standardization has only completed in Chromium since 128, firefox and safari have open bugs with positive signals. So we will need to feature check and keep the workaround for those cases. I will update the PR. |
And based on the spec PR we also need to cover |
@@ -230,8 +230,7 @@ | |||
margin-left: 4px; | |||
} | |||
|
|||
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom .menubar .menubar-menu-button > .menubar-menu-items-holder.monaco-menu-container, | |||
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom .monaco-toolbar .dropdown-action-container { | |||
.monaco-workbench .part.titlebar > .titlebar-container.counter-zoom .menubar .menubar-menu-button > .menubar-menu-items-holder.monaco-menu-container { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for removing this? This was added to fix the zooming for the dropdown action to the right of the command center. Without this, the zooming is wrong for that action. This line counter zooms the position because the title bar does not support negative zoom values (due to WCO).
Ref: #231825
I've tested the changes, all is good except for the dropdown to the right of the command centre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working
b52ebaf
to
21c615e
Compare
Fixes #233692