You should set the Text's width to some portion of the item renderer's
explicitWidth before measuring the Text.
Note that ListItemRenderer already does wordwrapping and uses TextField
instead of the heavier Text component.
From: flexcoders@yahoogroups.com [
When I did this, I did not extend ListItemRenderer, but rather copied it
an modfied the code. ListItemRenderer does properly handle height and
width measurement. You could look at the code, specifically in the
measure() method, to see what you need to do to duplicate the
functionality.
Tracy
2 matches
Mail list logo