Upgrade @codemirror/view and height fixes
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user