EditManager.applyContainerFormat() bug(?)
It looks like the changes caused by applying a container format via the EditManager are not persisting but you do see they are applied successfully.
Here are two code snippets that visually result in the same thing, but when using TextFilter.export() after the 1st snippet, you can see verticalAlign is still "inherit" on the TextFlow.
Example 1 - using EditManager:
var format:TextLayoutFormat = new TextLayoutFormat();
format.verticalAlign = VerticalAlign.MIDDLE;
editManager.applyContainerFormat(format, null);
Example 2 - direct manipulation:
editManager.textFlow.verticalAlign = VerticalAlign.MIDDLE;
editManager.textFlow.flowManager.updateAllContainers();
The problem is I am using the first approach so that I get undo-able FlowOperations (I'm listening to FLOW_OPERATION_END).
Am I attempting it wrong, or is there a bug with the applyContainerFormat() method?
Thanks,
Richard
