TTMSFMXTableView.AddListItem bug

If I have a TTMSFMXTableViewItem and in the event OnItemCustomize I write :

AItemShape.ShapeCaption.WordWrap := True;

if the item has Caption larger than a single line and a Description ( with a single line ) and the item has AutoSize to true, the AddLisItem makes a bad work, to correct the bug, it is needed to invert this lines :

...
AItem.ApplyEx;
AItem.UpdateAutoSize;
AItem.DoCustomize;
...

By

...
AItem.ApplyEx;
AItem.DoCustomize;
AItem.UpdateAutoSize;
...

Why?, because the AItem.DoCustomize calls the OnItemCustomize event, that can alter the height of the item, so, AItem.UpdateAutoSize should to be called the last.

Thank you.

You have an excellent and valid point. We have changed this, the next version of the TMS FMX UI Pack will address this.