Skip to content

Commit 651bd24

Browse files
authored
Set glyph margin decoration width appropriately (microsoft#181071)
1 parent c455231 commit 651bd24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class GlyphMarginOverlay extends DedupOverlay {
212212
const toRender = this._render(visibleStartLineNumber, visibleEndLineNumber, decorationsToRender, this._glyphMarginDecorationLaneCount);
213213

214214
const lineHeight = this._lineHeight.toString();
215-
const width = this._glyphMarginWidth.toString();
215+
const width = (Math.round(this._glyphMarginWidth / this._glyphMarginDecorationLaneCount)).toString();
216216
const common = '" style="width:' + width + 'px' + ';height:' + lineHeight + 'px;';
217217

218218
const output: string[] = [];

0 commit comments

Comments
 (0)