You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by hugo <hf...@gmail.com> on 2017/12/14 01:45:53 UTC

TLF Table error

Hello,

This is my first time, trying to use Table on TLF and even the smallest use
case throws an exception.

The smallest use case:
(textFlow.interactionManager as IEditManager).insertTableElement(new
TableElement());

Exception:
ArgumentError: NewElement not of a type that this can be parent of. TextFlow
cannot own table
	at
flashx.textLayout.elements::FlowGroupElement/replaceChildren()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:776]
	at
flashx.textLayout.elements::FlowGroupElement/addChildAt()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\elements\FlowGroupElement.as:906]
	at
AddElementMemento$/perform()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\ModelEdit.as:589]
	at
flashx.textLayout.edit::ModelEdit$/addElement()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\ModelEdit.as:57]
	at
flashx.textLayout.operations::InsertTableElementOperation/doOperation()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\operations\InsertTableElementOperation.as:107]
	at
flashx.textLayout.edit::EditManager/doInternal()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:772]
	at
flashx.textLayout.edit::EditManager/doOperation()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:652]
	at
flashx.textLayout.edit::EditManager/insertTableElement()[D:\flex_sdk\Sources\flex-tlf\textLayout\src\flashx\textLayout\edit\EditManager.as:1571]



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/