Skip to content

Commit 286219c

Browse files
committed
let parent know about custom width/height
1 parent 81bbac2 commit 286219c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/reducers/custom-stage-size.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const reducer = function (state, action) {
5151
};
5252

5353
const setCustomStageSize = function (width, height) {
54+
window.parent.postMessage({ type: "block-compiler-action", action: "resizedStage",width: width, height: height}, "*");
5455
return {
5556
type: SET_CUSTOM_STAGE_SIZE,
5657
width,

0 commit comments

Comments
 (0)