diff --git a/fixed-layout.js b/fixed-layout.js index 2d2da6e..ebc0e66 100644 --- a/fixed-layout.js +++ b/fixed-layout.js @@ -111,13 +111,13 @@ export class FixedLayout extends HTMLElement { right.height ?? blankHeight)) const transform = frame => { - const { element, iframe, width, height } = frame + const { element, iframe, width, height, blank } = frame Object.assign(iframe.style, { width: `${width}px`, height: `${height}px`, transform: `scale(${scale})`, transformOrigin: 'top left', - display: 'block', + display: blank ? 'none' : 'block', }) Object.assign(element.style, { width: `${(width ?? blankWidth) * scale}px`,