Commit 9920e376 authored by 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
parents b364038a 7840a2cb
......@@ -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', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment