lsc 1 rok pred
rodič
commit
153ecd3868
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      js/Desktop/DeskTop.js

+ 2 - 1
js/Desktop/DeskTop.js

@@ -6411,7 +6411,7 @@ U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
     _lchild.appendChild(_lspan)
     _lchild.style = "color: rgb(255, 255, 255);padding: 15px;background: rgba(0, 0, 0, 0.44);font-size: 18px;display: flex;align-items: center;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);"
     _loading.appendChild(_lchild)
-    var _box = $$('div', {
+    let _box = $$('div', {
         "style": {
             "position": "relative",
             "width": "100%",
@@ -6739,6 +6739,7 @@ U.MD.D.I.openApplicationJieE = function (str, cid, stage, task, tool) {
         } else if (str == 'whiteboard') {
             _iframe = _formdiv.querySelector('iframe')
             let onloadListener = _iframe.onload = () => {
+                alert(_box.offsetWidth)
                 _iframe.contentWindow.document.body.appendChild(script1);
                 _iframe.contentWindow.document.body.appendChild(script2);
                 _iframe.contentWindow.document.body.appendChild(script4);