Layout of XUI dialogs

Clay Helberg elaborates on XUI layout Last Updated: 2006-07-31

=Question=

Is there a minimum height value for the tablecontrol element? I find that if I designate a height of less than 100px it ignores the setting. In my informal testing 100px seems to be the threshold it will respond to sizings above 100px. Obviously this question comes from a need to take my tablecontrol height below 100px.

=Clay Helberg answers=

Is your table control next to another control that is 100px tall? If so, that may be why you are having trouble making the table smaller.

The layout system for XUI can sometimes be quite complicated when combining different controls with various settings for the "pack" attribute. I'd suggest playing around with the pack attribute values on various controls and boxes in your dialog to see if you can make it shrink the table as desired.

You might also do a quick test where you have a very simple dialog with only the table control. If you can't make a small table in the simple dialog, it's likely just a limitation of table sizing. If you can do it in the simple dialog, but not in your "real" one, you probably need to investigate the pack attribute approach.