Hola,
Say I have a layout:
elements := <a collection of elements> layout := RTForceBasedLayout new applyOn: elements; yourself
and then later I instantiate another element newElement, how can I tell the layout to take this one into account as well? If I add it to the collection of elements, nothing happens, and if I add it to the collection of elements contained in the layout I get the red error morph. :-(
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
You probably have to reapply the layout on the new collection.
It would be cool to get an animation that can handle such an addition.
Doru
On Sun, Jun 8, 2014 at 11:28 PM, Johan Fabry jfabry@dcc.uchile.cl wrote:
Hola,
Say I have a layout:
elements := <a collection of elements> layout := RTForceBasedLayout new applyOn: elements; yourself
and then later I instantiate another element newElement, how can I tell the layout to take this one into account as well? If I add it to the collection of elements, nothing happens, and if I add it to the collection of elements contained in the layout I get the red error morph. :-(
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Simply do “layout on: <your collection of elements>”
Alexandre
On Jun 8, 2014, at 5:28 PM, Johan Fabry jfabry@dcc.uchile.cl wrote:
Hola,
Say I have a layout:
elements := <a collection of elements> layout := RTForceBasedLayout new applyOn: elements; yourself
and then later I instantiate another element newElement, how can I tell the layout to take this one into account as well? If I add it to the collection of elements, nothing happens, and if I add it to the collection of elements contained in the layout I get the red error morph. :-(
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Yes, that works, thanks! But … - there is no force being applied in the layout on any elements at all - as Doru said, there is no animation when it is added even though I have a RTSpringLayoutStepping animation on the view :-(
On Jun 8, 2014, at 5:36 PM, Alexandre Bergel alexandre.bergel@me.com wrote:
Simply do “layout on: <your collection of elements>”
Alexandre
On Jun 8, 2014, at 5:28 PM, Johan Fabry jfabry@dcc.uchile.cl wrote:
Hola,
Say I have a layout:
elements := <a collection of elements> layout := RTForceBasedLayout new applyOn: elements; yourself
and then later I instantiate another element newElement, how can I tell the layout to take this one into account as well? If I add it to the collection of elements, nothing happens, and if I add it to the collection of elements contained in the layout I get the red error morph. :-(
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry PLEIAD lab - Computer Science Department (DCC) - University of Chile