Skip to content

Commit

Permalink
fix(Highcharts plugin): fix resetZoomButton alignment (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored May 23, 2024
1 parent 7180e39 commit 109d5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ export function prepareConfig(data, options, isMobile, holidays) {
// Callback setExtremes used because of it obligatory invocation on every zoom event
// setTimeout used because of absence resetZoomButton node in dom on first zoom event
setTimeout(() => {
const text = this.chart.resetZoomButton?.text;
const text = this.chart?.resetZoomButton?.text;

if (text) {
text.translate(0, -6);
Expand Down

0 comments on commit 109d5c0

Please sign in to comment.