Commit ca246611 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'vs/dynamically-resize-zuora-iframe' into 'master'

Dynamically resize Zuora IFrame to prevent zero size in some cases

See merge request gitlab-org/gitlab!64842
parents 83a59b9c 64d13b02
......@@ -96,13 +96,13 @@ export default {
// no needs to reload the iframe and emit the failure event
this.error = event.data.msg;
this.isAlertDismissed = false;
this.nextTick(() => {
this.$refs.zuora.src = this.iframeSrc;
});
window.removeEventListener('message', this.handleFrameMessages, true);
this.$refs.zuora.src = this.iframeSrc;
this.$emit('failure', { msg: this.error });
}
this.isLoading = false;
this.$refs.zuora.contentWindow.postMessage('resize', this.allowedOrigin);
},
isEventAllowedForOrigin(event) {
try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment