Hey - scratching my head on this one.
The documentation says:
Like the LinearPanel, if the height property is set (in the Properties dialog, or by resizing in the Designer), the ColumnPanel will have a constant height. If its contents get too tall, it will display scroll bars.
If the height property is empty, the ColumnPanel will expand to fit its contents.
But in the IDE I can’t find a way of setting the height at all. I can’t seem to drag the height of the ColumnPanel in the designer, and I can’t find a property to set in Properties. Auto-complete doesn’t seem to suggest a height property on the panel.
What am I missing? 
Ah! Well spotted. That documentation is very much out of date, and I have now updated it. Anvil Containers always expand to fit their contents.
The fixed documentation will go live with our next release - thanks for the heads-up!
Thanks @daviesian - at least I’m not going mad!
However… does this mean that I can’t fix the height of a container?
I am displaying two RepeatingPanels side by side (which represent to results lists) but I am finding that the components are getting out of line where a particular result might have a little more content.
I think what you’re going to say is… map the two results lists into a single list and then display the results as a single RepeatingPanel with the item template having two columns which display the two results side by side…
That is indeed exactly what I’m going to say, but this is Anvil, so there’s always another way! In this case, you could create a custom CSS role
that fixes the height of the element. There are various examples of using roles on the forum, but I’d be happy to come up with an example if anything remains unclear.
Hope that helps!
Got the custom role working and did exactly what you said. But has highlighted to me that unless I want to do a load of complicated CSS to cope with window resizing, I should just go with the first answer and have a single RepeatingPanel 
It’s a journey of learning!
Sounds reasonable. Just in case it helps: The vh
unit was a bit of a revelation when I discovered it recently. Not that I in any way recommend delving that deep into CSS!
1 Like