Fix bug on zoom with free shape.
authorAlexandre Segura <mex.zktk@gmail.com>
Thu, 18 May 2017 11:06:56 +0200
changeset 509 efa81cbd61e9
parent 508 3d920e27a465
child 510 be39a4b2db25
Fix bug on zoom with free shape.
src_js/iconolab-bundle/src/components/editor/ShapeFree.vue
--- a/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue	Thu May 18 10:37:26 2017 +0200
+++ b/src_js/iconolab-bundle/src/components/editor/ShapeFree.vue	Thu May 18 11:06:56 2017 +0200
@@ -1,5 +1,5 @@
 <template>
-    <svg>
+    <g>
         <defs>
             <path v-bind:id="annotationHref" ref="path" v-bind:d="path" class="path"></path>
         </defs>
@@ -18,15 +18,15 @@
                 v-bind:stroke-width="strokeWidth"
                 v-bind:class="{ handler: true, 'handler--first': key === 0 &amp;&amp; !closed }"></circle>
             <text ref="text"
-                v-if="!originalAnnotation && !closed && points.length > 3"
                 v-bind:x="text.x" v-bind:y="text.y"
-                font-family="Verdana"
+                v-show="!originalAnnotation && !closed && points.length > 3"
+                font-family="Open Sans"
                 v-bind:font-size="strokeWidth * 4"
                 class="text">
                 Double-cliquez pour fermer la zone
             </text>
         <g>
-    </svg>
+    </g>
 </template>
 
 <script>