strange table behaviour in layouts

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

strange table behaviour in layouts

Post by tpjctrl »

I'm normally baffled by how layouts work, sometimes it's as you'd think it would be, sometimes it does quirky things, but normally there's a way to "fix" it by breaking / creating layouts or trying different size policies, but this one seems to be a strange issue.

I have a simple panel with a HBox layout type, with a horizontal layout and a table in it, nothing else. The table has min size x / y set and size policy set to minimumExpanding. When I run the panel, the table just stays fixed at the min size. If I take away the min size x / y, the table shrinks to less than the summary width of columns in it, so that scroll bars are shown, but it still doesn't expand. Preferred / expanding size policy doesn't change anything, the table simply doesn't want to expand past a certain random looking size (around 300 x 200 px), it will shrink fine if I make the panel tiny, but it will not expand past a certain point. Anyone has any ideas why? or how to fix this? I just want the table to expand and fill the whole screen when the panel is resized.

dbindernagel
Posts:161
Joined: Mon Feb 23, 2015 1:34 pm

Re: strange table behaviour in layouts

Post by dbindernagel »

Hi,

I had the same problem with a table in a layout when I was changing already existing panels to use layouts.
The table would just not expand to the correct size.
I then remade the whole panel and suddendly it worked. I then checked if just deleting the table object and adding it again fixed the problem and it did.
Since I have xml panels I could take a look at the differences in the file and I noticed the "Layout Alignment" property was different.

If I set it to "AlignNone" it worked.

I then found the following forum entry which says there have been some changes to the layout in version 3.15 and the last object in a layout group must have "AlignNone".

viewtopic.php?p=956030

Somehow this info did not make its way into the help.

I'm not sure if there is not more to it, since it seems to affect tables more then other objects, but I was not going to spend more time on this.

BR
Dennis

tpjctrl
Posts:145
Joined: Tue May 08, 2018 10:30 am

Re: strange table behaviour in layouts

Post by tpjctrl »

Thanks Dennis, much appreciated. I personally find the whole align setting mind boggling, the amount of times I've set it to something different then AlignNone and had issues with resizing is surprising.

3 posts • Page 1 of 1