diff --git a/src/forge/Server/data.jsx b/src/forge/Server/data.jsx index 2ce0bb62d..14b12f284 100644 --- a/src/forge/Server/data.jsx +++ b/src/forge/Server/data.jsx @@ -88,7 +88,6 @@ function Data(props){ setSpining(false); } x.send(); - console.log("spining"); } function lookResult(taskId){ @@ -99,6 +98,19 @@ function Data(props){ } } + function iframeLoad() { + try { + let myIframe = document.getElementById("htmlIframe"); + console.log('myIframe', myIframe, myIframe.contentDocument); + if (myIframe.contentDocument) { + console.log(myIframe.contentDocument.querySelector('.el-main')); + myIframe.height = myIframe.contentDocument.querySelector('.el-main').clientHeight + 260; + // myIframe.contentDocument.querySelector('.admin-body-container').style.overflow = 'hidden'; + } + } catch (err) { + console.error(err); + } + } return(