I figured it out:
var lastFullyVisibleLine:TextFlowLine;
for (var i:int = textFlowComposer.numLines - 1; i >= 0; i--) {
lastFullyVisibleLine = textFlowComposer.lines[i] as TextFlowLine;
if (lastFullyVisibleLine.textLineExists && lastFullyVisibleLine.y +
lastFullyVisibleLine.textHeight <= height) {
break;
}
}
Baz
On Wed, Oct 26, 2011 at 7:56 PM, Baz <[email protected]> wrote:
> Say you had a container that was 15px tall, and each TextLine was 10px high
> - the last TextLine would be vertically clipped by 5px, but since it is
> partially visible, TLF would mark it as visible. Anyone know if there is a
> smart way to detect when a TextLine is vertically clipped?
>
> Thanks,
> Baz
>
>