You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two tabs (using Bootstrap). One renders a table, and the other renders a tree with Treant.js. Because the tree tab is initially not active, I need to call chart.tree.reload() when the tab becomes visible:
The problem is that the browser window scrolls all the way to the top when the tree reloads, because for a brief moment the tab container goes from having the height of the table to having no height.
Is there a way to reload the tree offscreen in order to prevent this issue from happening? Maybe passing a width to the tree config since I know the sizes beforehand?
The text was updated successfully, but these errors were encountered:
I have two tabs (using Bootstrap). One renders a table, and the other renders a tree with Treant.js. Because the tree tab is initially not active, I need to call
chart.tree.reload()
when the tab becomes visible:The problem is that the browser window scrolls all the way to the top when the tree reloads, because for a brief moment the tab container goes from having the height of the table to having no height.
Is there a way to reload the tree offscreen in order to prevent this issue from happening? Maybe passing a width to the tree config since I know the sizes beforehand?
The text was updated successfully, but these errors were encountered: