From e189abd9c28d1fa9f3de8b0adc9f14c8eb78ae66 Mon Sep 17 00:00:00 2001 From: Justineo Date: Mon, 22 Apr 2024 11:00:56 +0800 Subject: [PATCH] fix(#777): autoresize does not work when reducing height --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/style.css | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e46188c..dccab27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.6.10 + +* Fixed that `autoresize` doesn't work when reducing the height or the root element. + ## 6.6.9 * Fixed that the chart may not be the same size as the component root element ([#761](https://github.com/ecomfe/vue-echarts/issues/761)). diff --git a/package.json b/package.json index 55b7002..9df9a05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-echarts", - "version": "6.6.9", + "version": "6.6.10", "description": "Vue.js component for Apache ECharts™.", "author": "GU Yiling ", "scripts": { diff --git a/src/style.css b/src/style.css index 46ac19d..3d3f0bd 100644 --- a/src/style.css +++ b/src/style.css @@ -1,2 +1,2 @@ -x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0} -.vue-echarts-inner{flex-grow:1;min-width:0} +x-vue-echarts{display:block;position:relative;width:100%;height:100%;min-width:0} +.vue-echarts-inner{position:absolute;top:0;right:0;bottom:0;left:0}