Answered
single container update ability?
I have a bunch of containers created, and if I
programmatically make a slight change to one span in the text flow,
I do not want to go through the process of updating all of the
containers to see that change.
I figured flowComposer.updateContainter(modifiedContainerIndex) would work, however, after I call this method, the containers that come after the supplied index do not display properly.
After reviewing the docs, I found that this is not unexpected behaviour....
"Does just enough composition and update to ensure that the display for the specified container is current. If you have a chain of twenty containers and specify the tenth container, updateContainer() ensures that containers 1 - 10 are properly composed and displayed. Composition stops at that point and you cannot assume that the following containers are correctly displayed."
I tried to just call flowComposer.compose() hoping this might do the job, but it does not. :(
So, I ask... Is there a way to update a single container without messing up the rest of my containers that follow it?
Thanks,
Tim
I figured flowComposer.updateContainter(modifiedContainerIndex) would work, however, after I call this method, the containers that come after the supplied index do not display properly.
After reviewing the docs, I found that this is not unexpected behaviour....
"Does just enough composition and update to ensure that the display for the specified container is current. If you have a chain of twenty containers and specify the tenth container, updateContainer() ensures that containers 1 - 10 are properly composed and displayed. Composition stops at that point and you cannot assume that the following containers are correctly displayed."
I tried to just call flowComposer.compose() hoping this might do the job, but it does not. :(
So, I ask... Is there a way to update a single container without messing up the rest of my containers that follow it?
Thanks,
Tim
