Skip to content

Commit 2f1910e

Browse files
committed
fix: make inner wrapper fit to the root size (#761)
1 parent 48a0664 commit 2f1910e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ECharts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default defineComponent({
308308
attrs.ref = "root";
309309
attrs.class = attrs.class ? ["echarts"].concat(attrs.class) : "echarts";
310310
return h(TAG_NAME, attrs, [
311-
h("div", { ref: "inner", class: "echarts-inner" })
311+
h("div", { ref: "inner", class: "vue-echarts-inner" })
312312
]);
313313
}
314314
});

src/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
x-vue-echarts,.echarts-inner{display:block;width:100%;height:100%;min-width:0}
1+
x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
2+
.vue-echarts-inner{flex-grow:1;min-width:0}

0 commit comments

Comments
 (0)