psr
Posts: 4
Joined: Wed Apr 29, 2020 8:47 pm

Collapse and expand sub items with vertical scroll

Hi Highcharts Team,

I believe I’ve encountered a possible issue when using collapsible Gantt layers with the yAxis scroll bar.

I was able to reproduce the problem using an example from your site by adding a yAxis scroll bar:
https://jsfiddle.net/zepdknxc/

Steps to reproduce:

1- Collapse the last collapsible layer.
2- Scroll down the chart multiple times using the yAxis scroll bar.

Could you please assist me in identifying how to avoid or resolve this issue?

Regards,
andrzej.b
Site Moderator
Posts: 576
Joined: Mon Jul 15, 2024 12:34 pm

Re: Collapse and expand sub items with vertical scroll

Hi,

Thank you for contacting us with your issue.

It has been raised here: https://github.com/highcharts/highcharts/issues/13898
Please add your comments over there to help with prioritization.

Feel free to reach out if you have any further questions.

Kind regards,
Andrzej
Highcharts Developer
Maxi
Posts: 1
Joined: Thu Jan 23, 2025 11:37 am

Re: Collapse and expand sub items with vertical scroll

psr wrote: Tue Jan 21, 2025 9:54 pm Hi Highcharts Team,

I believe I’ve encountered a possible issue when using collapsible Gantt layers with the yAxis scroll bar.

I was able to reproduce the problem using an example from your site by adding a yAxis scroll bar:
https://jsfiddle.net/zepdknxc/

Steps to reproduce:

1- Collapse the last collapsible layer.
2- Scroll down the chart multiple times using the yAxis scroll bar.

Could you please assist me in identifying how to avoid or resolve this issue?

Regards,
try adding a setTimeout function right after collapsing the last layer before using the scroll bar :wink: sometimes, there’s a delay in how the layers are collapsing and how the chart redraws, so this could give it just enough time to settle before you start scrolling... It worked for me when I had an issue with a similar setup :D

Return to “Highcharts Gantt”