OK, it seems to work now. Thanks :-)
I think it would be a good idea to encapsulate the behavior of changing a node's content representation (see below for example code) in an API call, like the other 2 additions we talked about in the CLEI submission. It would be something like redrawContentsOf: aNode contentsBlock: aBlock
TraitStructuralZoom>>drawExtendedContents "extendedContentsFor: just adds the required nodes and edges" aView forNode: self do: [self extendedContentsFor: aView]. aView root allEdgesDo: #resetCache; applyLayout. aView updateWindow.
On 20 Jul 2010, at 06:21, Alexandre Bergel wrote:
It does in my image if I drag and drop the node. But if you do not drag a node, the bounds of the root is not updated. In any case, the last version should solve the problem. Try it with the code you gave, it should work.
I added a test for this situation: testInteraction14AddingSubnodeToIncreaseRootSize
Cheers, Alexandre
-- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile