Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit da98a7b4 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

#30: Fix legend issue: cannot parse 1vw

parent 7bd8aa69
......@@ -29,8 +29,8 @@
<draggable>
<div class="fjs-legend">
<div class="fjs-legend-element" v-for="group in groups">
<svg width="1vw" height="1vw">
<rect width="1vw" height="1vw" :fill="group.color"></rect>
<svg :width="iconSize" :height="iconSize">
<rect :width="iconSize" :height="iconSize" :fill="group.color"></rect>
</svg>
<span>{{ group.name }}</span>
</div>
......@@ -140,6 +140,9 @@
const height = this.height - this.margin.top - this.margin.bottom
return {width, height}
},
iconSize () {
return this.padded.width / 50
},
dataRanges () {
let binEdgeGlobalMin = Number.MAX_SAFE_INTEGER
let binEdgeGlobalMax = Number.MIN_SAFE_INTEGER
......
......@@ -41,8 +41,8 @@
<draggable>
<div class="fjs-legend">
<div class="fjs-legend-element" v-for="group in groups">
<svg width="1vw" height="1vw">
<rect width="1vw" height="1vw" :fill="group.color"></rect>
<svg :width="iconSize" :height="iconSize">
<rect :width="iconSize" :height="iconSize" :fill="group.color"></rect>
</svg>
<span>{{ group.name }}</span>
......@@ -134,6 +134,9 @@
const height = this.height - this.margin.top - this.margin.bottom
return {width, height}
},
iconSize () {
return this.padded.width / 50
},
dataRanges () {
let timelineGlobalMin = Number.MAX_SAFE_INTEGER
let timelineGlobalMax = Number.MIN_SAFE_INTEGER
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment