Kaynağa Gözat

Merge branch 'fix/after_submit_action' into 'develop'

Merge of fix/after_submit_action to develop 移动端正文编辑操作条固定

See merge request o2oa/o2oa!1028
胡起 5 yıl önce
ebeveyn
işleme
ce7f896e46

+ 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);