Upgrade @codemirror/view and height fixes

This commit is contained in:
Zef Hemel
2024-01-02 12:43:10 +01:00
parent 11693fbd00
commit 6b6ab30c92
6 changed files with 28 additions and 6 deletions
+6
View File
@@ -185,6 +185,12 @@ export function mountIFrame(
iframe.contentWindow!.location.href = resolvedContent.url;
if (resolvedContent.height) {
iframe.height = resolvedContent.height + "px";
if (widgetHeightCacheKey) {
client.setCachedWidgetHeight(
widgetHeightCacheKey!,
resolvedContent.height,
);
}
}
if (resolvedContent.width) {
iframe.width = resolvedContent.width + "px";