Skip to content
代码片段 群组 项目
提交 9920e376 编辑于 作者: Fatih Acet's avatar Fatih Acet
浏览文件

Merge branch 'fix-scrollhandle-in-time-series' into 'master'

Fixes scrollbar in time series

See merge request gitlab-org/gitlab!16354
No related branches found
No related tags found
无相关合并请求
......@@ -122,7 +122,7 @@ export default {
},
},
series: this.scatterSeries,
dataZoom: this.dataZoomConfig,
dataZoom: [this.dataZoomConfig],
};
},
dataZoomConfig() {
......
---
title: Fixes scroll handle icon in time series
merge_request: 16354
author:
type: fixed
......@@ -140,6 +140,16 @@ describe('Time series component', () => {
expect(timeSeriesChart.vm.svgs[mockSvgName]).toBe(`path://${mockSvgPathContent}`);
});
});
it('contains an svg object within an array to properly render icon', () => {
timeSeriesChart.vm.$nextTick(() => {
expect(timeSeriesChart.vm.chartOptions.dataZoom).toEqual([
{
handleIcon: `path://${mockSvgPathContent}`,
},
]);
});
});
});
describe('onResize', () => {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册