Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: SandBox component does not work outside WordPress context. #15415
The sandbox component resizing logic required the iframe to have a style setting the widget to 100%. In the block editor context, things worked as expected because the block styles include a style that sets iframes to 100%.
The component should not rely on this style being available.
This PR makes sure the component sets the style it needs.
How has this been tested?
I pasted the content available on this gist https://gist.github.com/jorgefilipecosta/94673924b3c426f2a0cb3c7fa179a984 on the playground playground/src/index.js.