I am currently working on implementing a button that generates a report by plotting some charts. Initially, these charts are hidden until the button is pressed. I am utilizing Bootstrap for the design, and as a result, the scrollbar is also hidden. Upon clicking the button, I use the show() function to display the divs containing the charts and call the chart render function. However, after the divs are displayed, the scrollbar appears but the chart.reflow() function seems to be inaccessible and does not trigger, causing the exporting button and credits to be cropped by the scrollbar.
For reference, here is a link to the code: https://jsfiddle.net/bernardo0marques/m6jqa79r/24/
A temporary solution I found is manually resizing the window, which triggers the .reflow() function and fixes the issue. Does anyone have any suggestions or workarounds for this problem?