doxygen-awesome-css icon indicating copy to clipboard operation
doxygen-awesome-css copied to clipboard

The shorter tab vertical spacing is filled to match the length of the other tab.

Open brtnfld opened this issue 8 months ago • 2 comments

When using the tabs feature, if one tab contains more lines than another, the shorter tab will be padded with blank lines until it matches the number of lines in the longer tab. If the padding extends beyond the current page, this can lead to wasted space and may create the impression that the documentation ends prematurely.

brtnfld avatar Apr 14 '25 14:04 brtnfld

I understand that this might be an issue in some cases! Do you have a suggestion on how this could be improved? The decision to make every page on a tab view the same length was made to avoid the content underneath it jumping around, which I found quite distracting. Maybe this could be a configuration option in the CSS?

jothepro avatar Apr 16 '25 18:04 jothepro

I'm not a CSS expert, but it would be sufficient to do it with CSS if that were an option. We use tabs for different versions of an example code for our use cases. The source code in tab 1 is much shorter than tab 2, so I would rather the text start directly after the text of tab 1, and it expands to the end of tab 2, the "jumping around" would not be noticeable because it would be off-screen until one scrolls down. But I don't mind the jumping around since the text changes once you switch tabs, so I expect it. You can find an example at

https://hdfgroup.github.io/hdf5/develop/d7/d7a/_h5_t__u_g.html#subsec_datatype_complex

It's the second instance of the tab usage ( you can search for "2003" to find it).

brtnfld avatar Apr 17 '25 22:04 brtnfld