-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] Guidelines not rendering in correct positions #4695
Comments
I have already looked into this and I think the problem is the way the character widths in The The created test element (stored in <div style="position: absolute; top: -50000px; width: 50000px;">
<div
style="font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 12px; font-feature-settings: "liga" 0, "calt" 0; font-variation-settings: normal; line-height: 16px; letter-spacing: 0px;">
<br>
<span>iiiiiiiiiiiiiiiiiiiiii</span>
<!-- a bunch more <br><span>...</span> -->
</div>
<div
style="font-family: Consolas, "Courier New", monospace; font-weight: bold; font-size: 12px; font-feature-settings: "liga" 0, "calt" 0; font-variation-settings: normal; line-height: 16px; letter-spacing: 0px;">
<br>
<span>|||||||||||||||||||||||<span>
<!-- a bunch more <br><span>...</span> -->
</div>
<div
style="font-family: Consolas, "Courier New", monospace; font-weight: normal; font-size: 12px; font-feature-settings: "liga" 0, "calt" 0; font-variation-settings: normal; line-height: 16px; letter-spacing: 0px; font-style: italic;">
<br>
<span>|||||||||||||||||||</span>
<!-- a bunch more <br><span>...</span> -->
</div>
</div> You will notice that the three This is also visible in the DevTools of the browser when you select one of the Potential Solutions
I am very open to a discussion and am also very motivated to implement the change. |
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
.tgz
file into your working directory and extract it:index.html
file in the same directory where you downloaded the code to:index.html
file using VSCode LiveServer.Actual (Problematic) Behavior
The guideline is drawn in the wrong spot:
Expected Behavior
The guideline should be drawn like this:
Additional Context
No response
The text was updated successfully, but these errors were encountered: