fix scrollbar issue

This commit is contained in:
kieferrm
2016-05-20 17:11:00 -07:00
committed by Johannes Rieken
parent a75c865d56
commit 06b47ae532

View File

@@ -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`;
}