TextContainerManager RTE
Hi,
I am using TLF in a spark list control item renderer.
The list data provider items create the TextFlow. However, when I try to create the textFlow only once I sometimes run into the error below:
Version:1.0 StartHTML:0000000149 EndHTML:0000001726 StartFragment:0000000199 EndFragment:0000001692 StartSelection:0000000199 EndSelection:0000001692 We always run into TypeError: Error #1009: Cannot access a property or method of a null object reference.
at flashx.textLayout.container::TextContainerManager/set compositionWidth()
at spark.components::RichEditableText/measureTextSize()
at spark.components::RichEditableText/measure()
at mx.core::UIComponent/measureSizes()
at mx.core::UIComponent/validateSize()
at mx.managers::LayoutManager/validateSize()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Since only internal classes are in the stacktrace it is hard to debug.
When the textFlow is created every time the binding executes the code works fine.
Any idea?
In general: Can I re-use the same textFlow in different ui components?
Thanks,
Sönke
