Graph parent div height not respected when tabs are switched
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
Hello,
I experienced the following bug:
Context
dash-1.20.0
dash-core-components-1.16.0
dash-html-components-1.1.3
dash-renderer-1.9.1
dash-table-4.11.3
Bug
I made a dash app with multiple graphs and tabs. I defined the height of the parent div of the graphs using the height property. Until dash version 1.18.1 it all worked fine. Since version 1.19.0 (I tested 1.19.0 and 1.20.0), the height property is no longer respected as tabs are switched. Initially, the divs have the correct height, but once you click on a different tab and then back, the height changes and the value defined as height is ignored.
Expected behavior
If height is defined, then that value should be respected also when tabs are switched. The behaviour I would expect is the one that was there in version 1.18.1.
Screenshots
Correct height:

Incorrect height after tab switch. In version 1.18.1, this height is the same as above. From version 1.19.0 it is not.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the graph layout in a Dash app using the reported 1.18.1, 1.19.0, and 1.20.0 versions, then switch tabs and return to the original tab while observing the parent div height. Compare the behavior across versions and identify the tab or graph entry point responsible; done means an explicitly defined height remains unchanged after tab switches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, react
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100