From 2da15dbafdbced8c1930321d7cea7b67b8d9f6ff Mon Sep 17 00:00:00 2001 From: Falko Schindler Date: Fri, 30 Aug 2024 18:46:50 +0200 Subject: [PATCH] fix EChart layout issue (see #2932) --- nicegui/elements/echart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nicegui/elements/echart.js b/nicegui/elements/echart.js index 911100f74..b447f7c25 100644 --- a/nicegui/elements/echart.js +++ b/nicegui/elements/echart.js @@ -4,7 +4,7 @@ import { convertDynamicProperties } from "../../static/utils/dynamic_properties. export default { template: "
", async mounted() { - await this.$nextTick(); // wait for Tailwind classes to be applied + await new Promise((resolve) => setTimeout(resolve, 0)); // wait for Tailwind classes to be applied if (this.enable_3d) { await import("echarts-gl"); }