瀏覽代碼

弹出对话框的移动限制在屏幕区域内

unknown 5 年之前
父節點
當前提交
782cbfe9cf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      o2web/source/o2_core/o2/xDesktop/Dialog.js

+ 1 - 1
o2web/source/o2_core/o2/xDesktop/Dialog.js

@@ -174,7 +174,7 @@ o2.xDesktop.Dialog = o2.DDL = new Class({
             if (layout.desktop.currentApp) content = layout.desktop.currentApp.content;
             if (layout.desktop.currentApp) content = layout.desktop.currentApp.content;
             this.containerDrag = new Drag.Move(this.node, {
             this.containerDrag = new Drag.Move(this.node, {
                 "handle": this.title,
                 "handle": this.title,
-                "container": this.options.container || this.markNode || content,
+                "container": this.options.positionNode || this.options.container || this.markNode || content,
                 "snap": 5
                 "snap": 5
             });
             });
         }
         }