diff options
Diffstat (limited to 'src/ui/components/TimeSystemAxis.vue')
-rw-r--r-- | src/ui/components/TimeSystemAxis.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/components/TimeSystemAxis.vue b/src/ui/components/TimeSystemAxis.vue index b8e48d521..d580b884e 100644 --- a/src/ui/components/TimeSystemAxis.vue +++ b/src/ui/components/TimeSystemAxis.vue @@ -94,15 +94,13 @@ export default { if (this.openmct.time.clock() === undefined) { let nowMarker = document.querySelector('.nowMarker'); if (nowMarker) { - nowMarker.parentNode.removeChild(nowMarker); + nowMarker.classList.add('hidden'); } } else { let nowMarker = document.querySelector('.nowMarker'); if (nowMarker) { - const svgEl = d3Selection.select(this.svgElement).node(); - let height = svgEl.style('height').replace('px', ''); - height = Number(height) + this.contentHeight; - nowMarker.style.height = height + 'px'; + nowMarker.classList.remove('hidden'); + nowMarker.style.height = this.contentHeight + 'px'; const now = this.xScale(Date.now()); nowMarker.style.left = now + this.offset + 'px'; } |