Files
flipper/website
John Knox 95a3a3d922 Fix style guide internally
Summary:
The site loads the style guide in an iframe so that it's css is isolated from the main sites styles.

But it doesn't know how big to render the iframe, because it doesn't know the size of its contents.
Previously, the js running inside the iframe measured itself and then accessed itself using the parents frame and modified it's own size to match.

That doesn't work anymore because the iframe isn't allowed to interact directly with its parent.
So instead, i'm using message passing.

Also changing MutationObserver to ResizeObserver because the former does not always fire when new css gets loaded and applied.

Reviewed By: aigoncharov

Differential Revision: D41735809

fbshipit-source-id: 9e84a9b20741f5470012e25f240fb6a2b494f7e3
2022-12-06 09:38:11 -08:00
..
2020-04-23 05:58:39 -07:00
2022-12-06 09:38:11 -08:00
2022-05-30 03:44:28 -07:00
2022-11-02 05:23:55 -07:00
2022-02-22 08:25:28 -08:00
2022-07-05 08:19:08 -07:00
2022-11-08 06:49:27 -08:00
2022-11-28 03:46:26 -08:00
2022-11-08 06:49:27 -08:00