in src/SDK.ts [356:364]
export function resize(width?: number, height?: number): void {
const body = document.body;
if (body) {
const newWidth = typeof width === "number" ? width : (body ? body.scrollWidth : undefined);
const newHeight = typeof height === "number" ? height : (body ? body.scrollHeight : undefined);
parentChannel.invokeRemoteMethod("resize", hostControlId, [newWidth, newHeight]);
}
}