Roassal2 - RTLabelled and RTNest

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Roassal2 - RTLabelled and RTNest

Leo Perard
Hi,

with the new interaction RTLabelled, I have played with it to integrate in my work and I have found a little bug.

| view box els |
view := RTView new.
box := RTBox new element.
els := (RTEllipse new color: Color red) elementsOn: (1 to: 30).
view add: box; addAll: els.

box @ RTDraggable.
box @ (RTLabelled new text: 'Container').

RTNest new layout: RTGridLayout; on: box nest: els.

view open

The label is not at the right place. If you move the box it will move to its place.
But if you add the interaction RTLabelled after the nest everything is ok.

Thanks
--
Leo Perard

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Roassal2 - RTLabelled and RTNest

abergel
Well spotted! This is now fixed!
Thanks Leo!

Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Apr 22, 2014, at 6:31 AM, Leo Perard <[hidden email]> wrote:

> Hi,
>
> with the new interaction RTLabelled, I have played with it to integrate in my work and I have found a little bug.
>
> | view box els |
> view := RTView new.
> box := RTBox new element.
> els := (RTEllipse new color: Color red) elementsOn: (1 to: 30).
> view add: box; addAll: els.
>
> box @ RTDraggable.
> box @ (RTLabelled new text: 'Container').
>
> RTNest new layout: RTGridLayout; on: box nest: els.
>
> view open
>
> The label is not at the right place. If you move the box it will move to its place.
> But if you add the interaction RTLabelled after the nest everything is ok.
>
> Thanks
> --
> Leo Perard
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev