fix height in iframe (#9669)

* fix height in iframe

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
pngwn 2024-10-11 16:52:25 +01:00 committed by GitHub
parent a26beb5531
commit 70998ea752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@self/app": patch
---
fix:fix height in iframe

View File

@ -13,6 +13,21 @@
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script data-gradio-mode>
window.__gradio_mode__ = "app";
window.iFrameResizer = {
heightCalculationMethod: "taggedElement"
};
window.parent?.postMessage(
{ type: "SET_SCROLLING", enabled: false },
"*"
);
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"
async
></script>
%sveltekit.head%
</head>
<body