Yeah, visual elements can get regenerated several times. Does that happen to be the first item in the table - that could mean a pass specifically to get the height of the first element, which will then be used to lay out the rest of the table.
Is it an option to build all this text in a component field, which the visual element can just look up? That saves the foreach from having to run so many times.
|