Skip to content

Commit

Permalink
FXL: hide empty iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Sep 9, 2023
1 parent ad25f6b commit 99e246e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixed-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 99e246e

Please sign in to comment.