Browse Source

移动端正文编辑操作条固定

huqi 5 years ago
parent
commit
b5e706d5e6
1 changed files with 7 additions and 5 deletions
  1. 7 5
      o2web/source/x_component_process_Xform/Documenteditor.js

+ 7 - 5
o2web/source/x_component_process_Xform/Documenteditor.js

@@ -1368,11 +1368,13 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
             this.toolbar.load();
         }.bind(this));
 
-        this.scrollNode = this.toolbarNode.getParentSrcollNode();
-        if (this.scrollNode){
-            this.scrollNode.addEvent("scroll", function(){
-                this.resizeToolbar();
-            }.bind(this));
+        if (!layout.mobile){
+            this.scrollNode = this.toolbarNode.getParentSrcollNode();
+            if (this.scrollNode){
+                this.scrollNode.addEvent("scroll", function(){
+                    this.resizeToolbar();
+                }.bind(this));
+            }
         }
 
         this.doublePageAction = new Element("div", {"styles": this.css.doc_toolbar_doublePage, "text": MWF.xApplication.process.Xform.LP.doublePage}).inject(this.toolbarNode);