mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
setting the width and height inside of render function
This commit is contained in:
parent
bdb0f0d955
commit
f430cf7398
|
@ -34,8 +34,6 @@
|
|||
}
|
||||
|
||||
.monaco-editor .sticky-line-number .codicon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue