You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a tree layout, when dragging an element I needed to drag all the children at the
same time. I knocked up a solution sufficient to my needs in about 40 minutes - see
attached changeset. I might be a nice general feature to add to Roassal but its a
bit rough. It will likely need some critical love to polish it before integration.
Later it might be made to work with ROSelection and multi-selected elements - but
that is out of my scope for the moment.
Reported by benjamin.t.coman on 2013-01-26 16:54:49
Hi Ben,
Thanks for your suggestion. I wrote a contribution inspired from your example.
Fixed in 1.457 of Roassal. Try this:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| view elements |
view := ROView new.
0 to: 50 by: 10 do: [ :i |
elements := (ROBox green size: 10) elementsOn: (i to: i + 9).
elements do: [ :e | e @ RODraggable @ ROPopup ].
view addAll: elements.
ROLine buildEdgesFromElement: elements first from: #yourself toAll: [ :v | (v + 1
to: v + 9) ].
ROTreeLayout on: elements.
(view elementFromModel: i) - ROBox + ROBox red.
(view elementFromModel: i)
@ ROAllConnectedNodeDraggable ;
translateBy: i * 15 @ 10.
].
view open
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reported by alexandre.bergel on 2013-10-21 12:36:24
Originally reported on Google Code with ID 904
Reported by
benjamin.t.coman
on 2013-01-26 16:54:49- _Attachment: [RODraggableWithOthers.2.cs](https://storage.googleapis.com/google-code-attachments/moose-technology/issue-904/comment-0/RODraggableWithOthers.2.cs)_
The text was updated successfully, but these errors were encountered: