Browse Source

增加版式文件比例缩放,可设置是否启用

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

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

@@ -1520,7 +1520,9 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
         if (layout.mobile) this.doublePageAction.hide();
 
 
+
         this.zoomActionArea =  new Element("div", {"styles": {"float": "right", "margin-right": "10px"}}).inject(this.toolbarNode);
+        if (this.json.isScale !== "y") this.zoomActionArea.hide();
         this.zoomAddAction = new Element("div", {
             "styles": {
                 "float": "right",
@@ -1534,7 +1536,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
                 "margin-left": "5px"
             },
             "text": "+"
-        }).inject(this.toolbarNode);
+        }).inject(this.zoomActionArea);
 
         this.zoomSelectAction = new Element("select", {
             "styles": {
@@ -1549,7 +1551,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
                 "margin-left": "5px"
             },
             "text": "100%"
-        }).inject(this.toolbarNode);
+        }).inject(this.zoomActionArea);
 
         this.zoomSubAction = new Element("div", {
             "styles": {
@@ -1564,7 +1566,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
                 "margin-left": "5px"
             },
             "text": "-"
-        }).inject(this.toolbarNode);
+        }).inject(this.zoomActionArea);
 
 
 
@@ -1626,7 +1628,6 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor =  new Cla
             if (v>2) v = 2;
             this.scaleTo(v);
         }.bind(this));
-
     },
     scaleTo: function(scale){
         this._returnScale();