Prevent .orgchart div from stretching #chart-container div

This issue has been tracked since 2022-07-12.

Hi,
not really an issue, just a request for help.
Is there a way to prevent <div class="orgchart"> from stretching its container, <div id="chart-container">?

In my case, #chart-container is a flex item which uses all the available height and width.
I'm using Orgchart with the Pan and Zoom options.
When the chart is initialized, if it's wider than the available space, the overflow is hidden, and that's good.
But that doesn't happen with the height.
If I explore the whole tree, it grows its containers and eventually expands <div id="chart-container"> too. I would like to prevent that.
I tried to set overflow: hidden with both css and jquery after the chart initialization, but it isn't working.

valentinomariotto wrote this answer on 2022-10-18

setting these properties on #chart-container did the trick

width:0;
min-width:100%;
More Details About Repo
Owner Name dabeng
Repo Name OrgChart
Full Name dabeng/OrgChart
Language JavaScript
Created Date 2016-02-06
Updated Date 2022-11-25
Star Count 2498
Watcher Count 150
Fork Count 746
Issue Count 358

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date