Page 1 of 1

[2.0.64] tabbed-pane width changing per-tab?

Posted: Sun Aug 17, 2025 4:51 am
by hgschmie
I have a mod with a GUI window whose main component is a tabbed-pane. In each tab, there is a vertical frame that contains a scroll pane, which in turn contains a table.

Each of these scroll panes may have a different width. However, the window only resizes on the scroll pane in the first tab. Any change in the content here, increases or decreases the width of the window while in the other tabs, the table within the scroll pane resizes but not the scroll pane itself.

First pane:
Screenshot 2025-08-16 at 21.40.02.png
Screenshot 2025-08-16 at 21.40.02.png (61.58 KiB) Viewed 140 times
Second pane:
Screenshot 2025-08-16 at 21.40.11.png
Screenshot 2025-08-16 at 21.40.11.png (54.67 KiB) Viewed 140 times
Both look the same in the GUI view:
Screenshot 2025-08-16 at 21.43.11.png
Screenshot 2025-08-16 at 21.43.11.png (505.84 KiB) Viewed 140 times
but when I look at the table (which is inside the scroll pane), then the tables have different widths.

First pane:
Screenshot 2025-08-16 at 21.44.50.png
Screenshot 2025-08-16 at 21.44.50.png (473.56 KiB) Viewed 140 times
Second pane:
Screenshot 2025-08-16 at 21.45.16.png
Screenshot 2025-08-16 at 21.45.16.png (339.99 KiB) Viewed 140 times
My assumption was that when the users switches tabs, the content of the window would resize as well. But it seems that the overall size of the tabbed-pane is controlled by the largest content in any pane.

Can that be changed? Or is it a limitation of the GUI components?

Re: [2.0.64] tabbed-pane width changing per-tab?

Posted: Sun Aug 17, 2025 8:04 pm
by Osmo
That is the behaviour of tabs and you can't control it.
You can however recreate the tab system, by using buttons and a frame

Re: [2.0.64] tabbed-pane width changing per-tab?

Posted: Tue Aug 19, 2025 5:52 am
by hgschmie
Thanks. I expected as much. I won't bother reimplementing. :-)