Browse Source

#2141 opened concernement siez to big, now is responsive

bach 1 year ago
parent
commit
21c8209c85
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/components/ConcernementMapItem.vue

+ 6 - 1
src/components/ConcernementMapItem.vue

@@ -1475,10 +1475,15 @@ export default {
       if (open) {
         // paper bring to front
         this.paper_objects.bringToFront();
+        // calcul opened size regarding window size
+        // let ch = this.canvas.height;
+        let s = this.canvas.height / (this.ray*2.8)
+        // debugger;
+
         // opening tweening
         this.tween = new Tween.Tween({s: this.scale, x: this.pos.x, y: this.pos.y, o: 0})
           .to({
-            s: 3,
+            s: s,
             x: (this.canvas.width - 450) / 2,
             y: this.canvas.height / 2,
             o: 0.8