mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
block-deco - fix horizontal scrolling issue (#175863)
This commit is contained in:
parent
77c8e2eeda
commit
8ae0aea38f
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ export class BlockDecorations extends ViewPart {
|
|||
const [paddingTop, paddingRight, paddingBottom, paddingLeft] = decoration.options.blockPadding ?? [0, 0, 0, 0];
|
||||
|
||||
block.setClassName('blockDecorations-block ' + decoration.options.blockClassName);
|
||||
block.setLeft(ctx.scrollLeft + this.contentLeft - paddingLeft);
|
||||
block.setLeft(this.contentLeft - paddingLeft);
|
||||
block.setWidth(this.contentWidth + paddingLeft + paddingRight);
|
||||
block.setTop(top - ctx.scrollTop - paddingTop);
|
||||
block.setHeight(bottom - top + paddingTop + paddingBottom);
|
||||
|
|
Loading…
Reference in a new issue