|
if View could have a user definable (does it already?) onRefresh
method, then this could be solved with something like the followig.
(might even work just using the resizeToFit adn reflow all methods). Every flowview has a reflow flag which defaults to true. 1. on refresh set all flags to false. (using a class method) 2. if a view has flowview children do not resize/reflow . 3. if a view has no flowview, resize and reflow, set its flag to true, and send a resize/reflow message to parent. 4. if a parent recieves a reflow message from a child, only reflow if all child flag are true. this would cause the resize/reflow to trickle up from the furthest branches of the tree. best, jost jostM wrote: I'm convinced at this point that this has to do with the unpredicatable order in which things get resized during a refresh. I have been able to cure all of these things in my own gui by explicitly timed refresh statements. |