ensure iframe is correct size on spaces (#5447)

This commit is contained in:
pngwn 2023-09-07 23:18:34 +01:00 committed by GitHub
parent 67bb7bcb6a
commit 7a4a89e5ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/app": patch
"gradio": patch
---
fix:ensure iframe is correct size on spaces

View File

@ -36,6 +36,9 @@
<script>
window.__gradio_mode__ = "app";
window.iFrameResizer = {
heightCalculationMethod: "taggedElement",
}
</script>
%gradio_config%

View File

@ -20,6 +20,7 @@
class="gradio-container gradio-container-{version}"
style:min-height={loaded ? "initial" : initial_height}
style:flex-grow={!display ? "1" : "auto"}
data-iframe-height
>
<div class="main">
<slot />