Automatic resizing card + listgroup

Hi,

How can depending on the item count in the list group the card be resized automatically?

Included is a test project.
TestProject1.zip (51.2 KB)

I have already found an alternative solution by using a WebHTMLDiv and Bootstrap elements but would like also to know if it is possible with Webcore controls.

You keep setting Align = alClient for this list control and ElementPosition = epAbsolute, hence, it keeps using absolute position & size.
Set this to relative positioning and HeightStyle = ssAuto and this auto sizers.

Thank you. Will also try this solution.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.