client/js/renderer/viewrepr.js
changeset 560 05a4380227f3
parent 557 18c36f038e9f
child 565 49bc7df521df
--- a/client/js/renderer/viewrepr.js	Thu Oct 01 15:45:20 2015 +0200
+++ b/client/js/renderer/viewrepr.js	Thu Oct 01 17:16:06 2015 +0200
@@ -72,13 +72,13 @@
         initWithParams: function(){
             var _this = this;
             
-            if (_this.options.views_parameters){
+            if (_this.options.view_force_autoscale){
+                this.autoScale();
+            } else {
                 _this.setScale(_this.params.zoom_level, new paper.Point(_this.params.offset));                
-            } else {
-                this.autoScale();
             }
             
-            if (_this.options.hide_nodes && _this.options.views_nodes){
+            if (_this.options.hide_nodes && !_this.options.view_show_hiddennodes){
                 _this.hiddenNodes = (_this.params.hidden_nodes || []).concat();
                 _this.hideNodes();
             } else {