Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 831 by google....(a)ben.coman.com.au: Rossal problem with nested
node translation to left of 0@0
http://code.google.com/p/moose-technology/issues/detail?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.
Attachments:
Roassal-problem-with-nested-node-translation#1.png 23.5 KB
Roassal-problem-with-nested-node-translation#2.png 29.6 KB