According to this official example,
If our size is dynamic, we have to make sure our frame is visible before calling SDK.resize() with no arguments. In that case, we would instead do something like this:
SDK.notifyLoadSucceeded().then(() => {
// we are visible in this callback.
SDK.resize();
});
Other than resize()
, I haven't found any other suggestions yet.