Closed vertic4l closed 4 months ago
okay, changing the function as shown helps:
export function resizeContainer(client, max = Number.POSITIVE_INFINITY) {
return client.invoke("resize", { height: max });
}
original:
export function resizeContainer(client, max = Number.POSITIVE_INFINITY) {
const newHeight = Math.min(document.body.clientHeight, max);
return client.invoke("resize", { height: newHeight });
}
Expectations
resizeContainer works, and iframe gets properly resized
Reality
iframe got a fixed height of 100px and content gets truncated. MAX_HEIGHT is 1000 by default.
Steps to Reproduce