Interesting; the layout is ignoring the border --- there should be spacing
everywhere.
It seems that the border is not accounted for in encompassingRectangle
and/or containsPoint: as RTDraggable also works only on the inner half of
the border.
Peter
On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <
natalia.tymchuk(a)unikernel.net> wrote:
Thank you.
Best regards,
Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel
<alexandre.bergel(a)me.com>
wrote:
Hi Natalia,
You can set the border as:
v := RTView new.
shape := RTEllipse new
size: 30;
color: Color white;
borderWidth: [ :vv | vv / 30 ];
borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)).
RTGridLayout on: v elements.
v
You questioned whether ellipse are special. I would say that border are
rarely
required for an ellipse, but for a box it is often necessary. This
is just my feeling.
Cheers,
Alexandre
> On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <
natalia.tymchuk(a)unikernel.net> wrote:
Hello,
I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards,
Natalia
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev