Skip to content

Rossal problem with nested node translation to left of 0@0 #831

@seandenigris

Description

@seandenigris

Originally reported on Google Code with ID 831

The way negative translation is handled for nested elements is causing
havoc as I was try to put some new tricks into ROCircleLayout.  I now perceive this
as a bug which I have distilled below.   

Review to the attached image #1 that was produced by the code listed below. I would
expect that the three 'negative' squares would be spaced symmetrically to the three
'positive' squares.  In attached image #2 element '-3' was moved to the left.  Observe
how the origin of element '-3' remains constant at 0@0 while the origin of elements
'-2' and '-1' are modified as the left border is pushed further left.  In effect, 
this behaviour appears to be the root cause of the 'non-symmetrical' behavior that
is causing me grief.

I believe that as element '-3' is dragged into the negative, the origin of '-3' should
go negative leaving the origins of '-2' and -'1' unchanged.  Let the parent node take
care of the overall translation of its nested elements to keep the 'negative' elements
in view.  The overall visual effect of moving a node into a negative position should
be unchanged, except that conceptually the 0@0 point will be drifting into the middle
of the parent element rather than remaining fixed at the top left.

By way of example, I believe the effect of this on ROCircleLayout>>doExecute would
be to remove all references to the 'center' variable.

This is with Roassal.283.

Reported by benjamin.t.coman on 2012-09-04 15:31:09


- _Attachment: Roassal-problem-with-nested-node-translation#1.png
![Roassal-problem-with-nested-node-translation#1.png](https://storage.googleapis.com/google-code-attachments/moose-technology/issue-831/comment-0/Roassal-problem-with-nested-node-translation#1.png)_ - _Attachment: Roassal-problem-with-nested-node-translation#2.png
![Roassal-problem-with-nested-node-translation#2.png](https://storage.googleapis.com/google-code-attachments/moose-technology/issue-831/comment-0/Roassal-problem-with-nested-node-translation#2.png)_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions