I encountered an issue that I initially thought was related to the general configuration of my app and the height I assigned to my page wrapping classes. However, after creating a simple out-of-the-box material UI tab example, it became clear that this behavior is intrinsic to the material UI Tabs Component.
The Material UI tabs component assigns the same height to its tab container, which is determined by the largest content within. This means that if one tab has a lot of content, it will make all other tabs the same height, even if they only contain minimal content like a text field and a button.
How can I ensure that each tab container adjusts its height based on its own content?
Here is a visual representation: https://i.sstatic.net/7VYsU.png
Here is the reason why TAB ONE appears larger, as TAB TWO sets the height: https://i.sstatic.net/afUHK.png
Here is a webpackBin where you can see the code in action and experiment with it.
One workaround I have tried is setting a fixed height and overflow, but I prefer to avoid this as it leads to a double scroll bar (one in the tab container and one in the body), which looks buggy.
I would like the tab containers (those with the green border) to adjust their height dynamically based on their content, similar to TAB TWO, but independently.
Thank you in advance!