mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 20:37:13 -05:00
fix scrollbar issue
This commit is contained in:
committed by
Johannes Rieken
parent
a75c865d56
commit
06b47ae532
@@ -122,7 +122,8 @@ export class HtmlPreviewPart extends BaseEditor {
|
||||
|
||||
public layout(dimension: Dimension): void {
|
||||
const {width, height} = dimension;
|
||||
this._container.style.width = `${width}px`;
|
||||
// we take the padding we set on create into account
|
||||
this._container.style.width = `${Math.max(width - 20, 0)}px`;
|
||||
this._container.style.height = `${height}px`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user