Skip to content

Commit

Permalink
fix(playground): use visibility hidden to hide iframe for proper cont…
Browse files Browse the repository at this point in the history
…ent sizing (#2623)

When using `display: none` on the iframe, an Ionic content component using `fullscreen` will not properly resize on app load. Setting the iframe `visibility: hidden` allows the content to resize properly.
  • Loading branch information
brandyscarney authored Oct 26, 2022
1 parent 00bc963 commit d08fb9d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/global/Playground/playground.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,8 @@
}

.playground .frame-hidden {
display: none;
}

.playground .frame-visible {
width: 100%;
visibility: hidden;
width: 0%;
}

/** Tabs **/
Expand Down

1 comment on commit d08fb9d

@vercel
Copy link

@vercel vercel bot commented on d08fb9d Oct 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app
ionic-docs-git-main-ionic1.vercel.app

Please sign in to comment.