roassal rendering problem

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

roassal rendering problem

Fabrizio Perin-3
Hi,
I'm having problem with roassal rendering rectangles with text:

| view |
view := ROMondrianViewBuilder new.
view shape rectangle withText: 'Hello'.
view node: #1.
view open.

this will generate the shape in wrong_rendering attachement
Immagine in linea 1

while I would expect the same rendering as:

| view |
view := ROMondrianViewBuilder new.
view shape rectangle.
view 
node: #1
forIt: [
view shape label text: 'Hello'.
view node: #1].
view open

see attachement correct_rendering.png
 Immagine in linea 2

What I want is a rectangle with a inside label (or a label with borders, depends from the point of view :) ).
Am I misusing roassal shapes or it is a bug?

Using latest Moose.

Thanks in advance,
Fabrizio

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

Re: roassal rendering problem

abergel
It is a bug, I am on it right now.

Alexandre


On Nov 7, 2013, at 6:48 AM, Fabrizio Perin <[hidden email]> wrote:

> Hi,
> I'm having problem with roassal rendering rectangles with text:
>
> | view |
> view := ROMondrianViewBuilder new.
>
> view shape rectangle withText: 'Hello'.
> view node: #1.
>
> view open.
>
> this will generate the shape in wrong_rendering attachement
> <wrong_rendering.png>
>
> while I would expect the same rendering as:
>
> | view |
> view := ROMondrianViewBuilder new.
>
> view shape rectangle.
> view
> node: #1
> forIt: [
> view shape label text: 'Hello'.
> view node: #1].
>
> view open
>
> see attachement correct_rendering.png
>  <correct_rendering.png>
>
> What I want is a rectangle with a inside label (or a label with borders, depends from the point of view :) ).
> Am I misusing roassal shapes or it is a bug?
>
> Using latest Moose.
>
> Thanks in advance,
> Fabrizio
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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




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

Re: roassal rendering problem

abergel
In reply to this post by Fabrizio Perin-3
Fixed in Version 1.473 of Roassal

Thanks for having spotted this.

Alexandre


On Nov 7, 2013, at 6:48 AM, Fabrizio Perin <[hidden email]> wrote:

> Hi,
> I'm having problem with roassal rendering rectangles with text:
>
> | view |
> view := ROMondrianViewBuilder new.
>
> view shape rectangle withText: 'Hello'.
> view node: #1.
>
> view open.
>
> this will generate the shape in wrong_rendering attachement
> <wrong_rendering.png>
>
> while I would expect the same rendering as:
>
> | view |
> view := ROMondrianViewBuilder new.
>
> view shape rectangle.
> view
> node: #1
> forIt: [
> view shape label text: 'Hello'.
> view node: #1].
>
> view open
>
> see attachement correct_rendering.png
>  <correct_rendering.png>
>
> What I want is a rectangle with a inside label (or a label with borders, depends from the point of view :) ).
> Am I misusing roassal shapes or it is a bug?
>
> Using latest Moose.
>
> Thanks in advance,
> Fabrizio
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

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




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