Mercurial > gemma
diff client/src/components/gauge/Waterlevel.vue @ 3688:af06045e87c9
client: diagrams: wait (longer) for legend child component to render before rendering diagram (see comments for explanation)
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 18 Jun 2019 16:40:04 +0200 |
parents | c086f5176ef2 |
children | afc8ac7001ee |
line wrap: on
line diff
--- a/client/src/components/gauge/Waterlevel.vue Tue Jun 18 16:23:00 2019 +0200 +++ b/client/src/components/gauge/Waterlevel.vue Tue Jun 18 16:40:04 2019 +0200 @@ -1269,7 +1269,7 @@ // should be possible with $nextTick() but it doesn't work because it does // not guarantee that the DOM is not only updated but also re-painted on the // screen. - setTimeout(this.drawDiagram, 50); + setTimeout(this.drawDiagram, 150); this.templates[0] = this.defaultTemplate; this.form.template = this.templates[0];