microsoft / microsoft/monaco-editor
[Bug] glyphMargin: true and box-sizing: border-box makes line number gap
Open
@aiday-mar is already working on this.
Since Apr 17, 2023.
blocked
bug
editor-sticky-scroll
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
No response
Reproduction Steps
glyphMargin: true and box-sizing: border-box
Actual (Problematic) Behavior
There is a gap in sticky scroll line number.
Expected Behavior
There is no gap in sticky scroll line number.
Additional Context
box-sizing: border-box is used for many UI framework because it is easier to calculate container size.
monaco-editor does not set box-sizing in style, so parent style is used.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.