setting the width and height inside of render function

This commit is contained in:
Aiday Marlen Kyzy 2023-08-25 15:17:53 +02:00
parent bdb0f0d955
commit f430cf7398
No known key found for this signature in database
GPG key ID: 24A8B53DBD26FF4E
2 changed files with 2 additions and 2 deletions

View file

@ -34,8 +34,6 @@
}
.monaco-editor .sticky-line-number .codicon {
width: 18px;
height: 18px;
float: right;
}

View file

@ -307,6 +307,8 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
return;
}
const foldingIconNode = container.appendChild(document.createElement('div'));
foldingIconNode.style.width = `${this._lineHeight}px`;
foldingIconNode.style.height = `${this._lineHeight}px`;
const isCollapsed = foldingRegions.isCollapsed(indexOfFoldingRegion);
foldingIconNode.className = ThemeIcon.asClassName(isCollapsed ? foldingCollapsedIcon : foldingExpandedIcon);
const foldingIcon = new FoldingIcon(foldingIconNode, isCollapsed);