-
-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Overlay sizing #543
Fix Overlay sizing #543
Conversation
Your Render PR Server URL is https://toolpad-pr-543.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cah29n319n0fr4mh35r0. |
Your Render PR Server URL is https://toolpad-pr-543.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cb5ufbfd17c0vgvacbt0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great job, thanks for this, we definitely should make the RenderPanel
file much lighter and this helps a lot :D
doesn't seem like anything should conflict with my work!
const [editorOverlayRoot, setEditorOverlayRoot] = React.useState<HTMLElement | null>(null); | ||
const [appRoot, setAppRoot] = React.useState<HTMLElement | null>(null); | ||
|
||
React.useImperativeHandle( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one, seems like a good idea to have moved these to the ref, as they have to do with the app root more than the render panel
We need to make the overlay a child of the app root, so that it can size relative to it. Took the opportunity to remove a few hacks from the
RenderPanel
related to its communication with the canvasScreen.Recording.2022-06-09.at.18.45.57.mov