Marcelluszebra
Posts: 20
Joined: Mon Mar 04, 2019 3:40 pm

Breaking Change in 11.4.8 Resize

Hi,

some strange happens in 11.4.8 when a chart is into a 100% height container.
https://jsfiddle.net/joecLvy7/

then change referenced scripts to 11.4.7 and run.

marc.
User avatar
dawid.d
Site Moderator
Posts: 1189
Joined: Thu Oct 06, 2022 11:31 am

Re: Breaking Change in 11.4.8 Resize

Hi,

Thanks for your question!

This change stems from a recent overhaul of how Highcharts handles container resizing. If you'd like to revert to the previous logic without downgrading the library version, you can use the workaround I’ve demonstrated in the demo below.

If you believe this is a regression bug, you can report it here: https://github.com/highcharts/highchart ... new/choose

Demo: https://jsfiddle.net/BlackLabel/5gpm14ac/

Best regards
Dawid Draguła
Highcharts Developer
Marcelluszebra
Posts: 20
Joined: Mon Mar 04, 2019 3:40 pm

Re: Breaking Change in 11.4.8 Resize

Hello and thank you for your response,

I don't think it's a regression bug; however, I am quite puzzled by the idea of adding a script full of constants and deeply dependent on the version, as it could stop working at any moment. For example, that script takes 'position == absolute' into account but not 'fixed,' is that correct? I don't know... it seems too convoluted and overly complex to me.

Is it possible that there isn't a more straightforward way?

Thank you very much,
Marc.
User avatar
dawid.d
Site Moderator
Posts: 1189
Joined: Thu Oct 06, 2022 11:31 am

Re: Breaking Change in 11.4.8 Resize

Hi Marc,

This is a difficult topic because it all depends on the interpretation of how the container should behave with a given styling. If you think this wrap may be too unstable, you can try using the alternative code below:

Demo: https://jsfiddle.net/BlackLabel/3x2wzg1j/

Best regards
Dawid Draguła
Highcharts Developer
Dron007
Posts: 4
Joined: Mon Jun 24, 2019 4:56 pm

Re: Breaking Change in 11.4.8 Resize

Changes in patch version should not introduce breaking changes without backward compatibility. According to Semantic versioning "Given a version number MAJOR.MINOR.PATCH, increment the: ... 3. PATCH version when you make backward compatible bug fixes". This fix is not backward compatible.

I have also faced with similar issue and I am trying to create the minimal example because there is a lot of different code. I need some time. The issue I have is that bar placed near a custom donut chart has too big height after Highchart upgrade.
User avatar
dawid.d
Site Moderator
Posts: 1189
Joined: Thu Oct 06, 2022 11:31 am

Re: Breaking Change in 11.4.8 Resize

Hi,

Yes, you're right. We're sorry for any issues this may have caused. This fix wasn't supposed to introduce breaking changes. If you've encountered a specific case where something isn't working correctly anymore, we encourage you to report the regression on GitHub: https://github.com/highcharts/highchart ... new/choose

I hope the current workaround is sufficient for now.

Best regards,
Dawid Draguła
Highcharts Developer

Return to “Highcharts Usage”