fix: 修改panel line-chart nodata的高度问题
This commit is contained in:
@@ -1071,7 +1071,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const vm = this
|
const vm = this
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
const divHeight = self.$refs.legendArea ? self.$refs.legendArea.offsetHeight : 0
|
const divHeight = self.$refs.legendArea && self.$refs.legendArea.offsetHeight > 20 ? self.$refs.legendArea.offsetHeight : 27
|
||||||
if (!chartInfo.height) {
|
if (!chartInfo.height) {
|
||||||
getChart(self.chartIndex) && getChart(self.chartIndex).resize({ height: (250 - divHeight - chartResizeTool.titleHeight - chartResizeTool.chartBlankHeight) })
|
getChart(self.chartIndex) && getChart(self.chartIndex).resize({ height: (250 - divHeight - chartResizeTool.titleHeight - chartResizeTool.chartBlankHeight) })
|
||||||
} else {
|
} else {
|
||||||
@@ -1962,7 +1962,7 @@ export default {
|
|||||||
this.computeLegendData(this.legendListMore, this.seriesItemArr, 'local')
|
this.computeLegendData(this.legendListMore, this.seriesItemArr, 'local')
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const divHeight = this.$refs.legendArea.offsetHeight
|
const divHeight = this.$refs.legendArea && this.$refs.legendArea.offsetHeight > 20 ? this.$refs.legendArea.offsetHeight : 27
|
||||||
if (!this.chartInfo.height) {
|
if (!this.chartInfo.height) {
|
||||||
getChart(this.chartIndex).resize({ height: (400 - divHeight - this.$chartResizeTool.titleHeight - this.$chartResizeTool.chartBlankHeight) })
|
getChart(this.chartIndex).resize({ height: (400 - divHeight - this.$chartResizeTool.titleHeight - this.$chartResizeTool.chartBlankHeight) })
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user