diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index 6937292..008fcec 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -24,7 +24,6 @@ :enableHtml="enableHtml" :runResultStatus="runResultStatus" :runResult="runResult" - :maxHeight="maxHeight" :key="timeStamp" /> @@ -39,7 +38,6 @@ :enableHtml="enableHtml" :runResultStatus="runResultStatus" :runResult="runResult" - :maxHeight="maxHeight" :key="timeStamp" /> diff --git a/src/components/ResultArea.vue b/src/components/ResultArea.vue index 08ace8c..45fbdfe 100644 --- a/src/components/ResultArea.vue +++ b/src/components/ResultArea.vue @@ -58,7 +58,6 @@ export default { enableHtml: Boolean, runResultStatus: Boolean, runResult: Object, - maxHeight: Number, frameInitHeight: Number, }, computed: { @@ -90,12 +89,9 @@ export default { }; Object.assign(cfw, ctx); cfw.onload = () => { - this.frameHeight = Math.min( - cfw.document.body.innerText - ? cfw.document.documentElement.getBoundingClientRect().height - : 0, - this.maxHeight - ); + this.frameHeight = cfw.document.body.innerText + ? cfw.document.documentElement.getBoundingClientRect().height + : 0; this.$emit("frameLoad", this.frameHeight); }; },