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
Currently ROCircle acts more like a hypothetical ROEllipse, since it is not constrained
to force dimensions to be equal. The following might be a worthwhile test case...
---
| rawView element1 element2 |
element1 := (ROElement on: '1' ).
element1 + ROCircle.
element1 width: 200; height: 100.
self assert: ( element1 height = 200).
element2 := (ROElement on: '2' ).
element2 width: 200; height: 100.
element2 + ROCircle. "Swapped order with above line"
self assert: ( element2 height = 200). "Should be true. Currently not."
"optional - following not part of test - just visual feedback"
rawView := ROView new.
rawView add: element1.
rawView add: element2.
ROVerticalLineLayout on: rawView elements.
rawView open.
---
The first assert can be made to work by adding the following...
----
ROCircle>>extent: anExtentPoint
| max |
max := anExtentPoint x max: anExtentPoint y.
extent := max @ max.
next extent: anExtentPoint
---
The second assert, I'm not sure yet about resolving the fail.
Reported by benjamin.t.coman on 2012-09-16 11:36:56
The text was updated successfully, but these errors were encountered:
This is the first time someone complains about this. I agree about the distinction you
are making about circle and ellipse.
I've just realized that what cannot be done is to have a circle with the same height
and width in an element with a different width and height.
Reported by alexandre.bergel on 2012-09-16 16:13:33
Less a complaint :) and more a nitpick observation. You could just change it to ROEllipse
and be done; or draw a circle within the minimum extent dimension; or grow element
to equal sides of the maximum dimension as I've done above; or just ignore it.
Low priority.
Reported by benjamin.t.coman on 2012-09-16 17:21:23
Originally reported on Google Code with ID 837
Reported by
benjamin.t.coman
on 2012-09-16 11:36:56The text was updated successfully, but these errors were encountered: