Hi,
i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. By using this shape definition: tableShape | builder | builder := MOFormsBuilder new. builder column; fill; pref; grow. builder row; fill; pref; grow; row; fill; pref; grow. builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). builder x: 1 y: 2 add: MORectangleShape new. builder x: 1 y: 2 add: MOChildrenShape new. ^view shape: builder shape and using this visualization script: view shape tableShape. view node: (FAMIXNamedEntity new name: 'test') forIt: [ view shape rectangle. view nodes: (1 to: 20). view verticalLineLayout. ]. I got the result in the attachment. Thanks, Fabrizio _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev Mondrian-2011-01-19-1914.png (1K) Download Attachment |
Arg... It looks like to be a bug. Consider:
| builder | builder := MOFormsBuilder new. builder column; fill; pref; grow. builder row; fill; row; fill; pref; grow. builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). builder x: 1 y: 2 add: MORectangleShape new. builder x: 1 y: 2 add: MOChildrenShape new. view shape: builder shape. view node: 'hello' forIt: [ view nodes: (1 to: 5). view verticalLineLayout ] Can you open an entry in google and put me in Cc? In the meantime, you can use something like: view node: #yourNode forIt: [ view shape label. view node: 'hello'. view node: 'hello' forIt: [ view nodes: (1 to: 5). view verticalLineLayout ]. view verticalLineLayout gapSize: 1; stretchHorizontally ] Alexandre On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: > Hi, > i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. > > By using this shape definition: > > tableShape > | builder | > > builder := MOFormsBuilder new. > > builder column; fill; pref; grow. > builder row; fill; pref; grow; row; fill; pref; grow. > builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). > builder x: 1 y: 2 add: MORectangleShape new. > builder x: 1 y: 2 add: MOChildrenShape new. > > ^view shape: builder shape > > > and using this visualization script: > > view shape tableShape. > view node: (FAMIXNamedEntity new name: 'test') forIt: [ > view shape rectangle. > view nodes: (1 to: 20). > view verticalLineLayout. ]. > > I got the result in the attachment. > > <Mondrian-2011-01-19-1914.png> > > Thanks, > > 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 Screen shot 2011-01-19 at 15.37.09.png (5K) Download Attachment |
Hi Alex,
thanks for the quick answer. I did open the issue but i couldn't edit the entry so i don't now how put you in cc or say that is related to the component Mondrian. Here the link: https://code.google.com/p/moose-technology/issues/detail?id=498 tell me is i should add something. In the meanwhile i will try your work around. Cheers, Fabrizio On 19 Jan 2011, at 19:40, Alexandre Bergel wrote: > Arg... It looks like to be a bug. Consider: > > | builder | > builder := MOFormsBuilder new. > builder column; fill; pref; grow. > builder row; fill; row; fill; pref; grow. > builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). > builder x: 1 y: 2 add: MORectangleShape new. > builder x: 1 y: 2 add: MOChildrenShape new. > view shape: builder shape. > > view node: 'hello' forIt: [ > view nodes: (1 to: 5). > view verticalLineLayout > ] > <Screen shot 2011-01-19 at 15.37.09.png> > > Can you open an entry in google and put me in Cc? > > In the meantime, you can use something like: > > view node: #yourNode forIt: [ > view shape label. > view node: 'hello'. > > view node: 'hello' forIt: [ > view nodes: (1 to: 5). > view verticalLineLayout > ]. > view verticalLineLayout gapSize: 1; stretchHorizontally > ] > > Alexandre > > > On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: > >> Hi, >> i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. >> >> By using this shape definition: >> >> tableShape >> | builder | >> >> builder := MOFormsBuilder new. >> >> builder column; fill; pref; grow. >> builder row; fill; pref; grow; row; fill; pref; grow. >> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >> builder x: 1 y: 2 add: MORectangleShape new. >> builder x: 1 y: 2 add: MOChildrenShape new. >> >> ^view shape: builder shape >> >> >> and using this visualization script: >> >> view shape tableShape. >> view node: (FAMIXNamedEntity new name: 'test') forIt: [ >> view shape rectangle. >> view nodes: (1 to: 20). >> view verticalLineLayout. ]. >> >> I got the result in the attachment. >> >> <Mondrian-2011-01-19-1914.png> >> >> Thanks, >> >> 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 _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
Hi Fabrizio,
I added you to the Members list ([hidden email]). You should be able to edit the issue now if you are logged in with the Google account. Cheers, Doru On 19 Jan 2011, at 21:33, Fabrizio Perin wrote: > Hi Alex, > thanks for the quick answer. I did open the issue but i couldn't edit the entry so i don't now how put you in cc or say that is related to the component Mondrian. > Here the link: > > https://code.google.com/p/moose-technology/issues/detail?id=498 > > tell me is i should add something. In the meanwhile i will try your work around. > > Cheers, > > Fabrizio > > On 19 Jan 2011, at 19:40, Alexandre Bergel wrote: > >> Arg... It looks like to be a bug. Consider: >> >> | builder | >> builder := MOFormsBuilder new. >> builder column; fill; pref; grow. >> builder row; fill; row; fill; pref; grow. >> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >> builder x: 1 y: 2 add: MORectangleShape new. >> builder x: 1 y: 2 add: MOChildrenShape new. >> view shape: builder shape. >> >> view node: 'hello' forIt: [ >> view nodes: (1 to: 5). >> view verticalLineLayout >> ] >> <Screen shot 2011-01-19 at 15.37.09.png> >> >> Can you open an entry in google and put me in Cc? >> >> In the meantime, you can use something like: >> >> view node: #yourNode forIt: [ >> view shape label. >> view node: 'hello'. >> >> view node: 'hello' forIt: [ >> view nodes: (1 to: 5). >> view verticalLineLayout >> ]. >> view verticalLineLayout gapSize: 1; stretchHorizontally >> ] >> >> Alexandre >> >> >> On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: >> >>> Hi, >>> i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. >>> >>> By using this shape definition: >>> >>> tableShape >>> | builder | >>> >>> builder := MOFormsBuilder new. >>> >>> builder column; fill; pref; grow. >>> builder row; fill; pref; grow; row; fill; pref; grow. >>> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >>> builder x: 1 y: 2 add: MORectangleShape new. >>> builder x: 1 y: 2 add: MOChildrenShape new. >>> >>> ^view shape: builder shape >>> >>> >>> and using this visualization script: >>> >>> view shape tableShape. >>> view node: (FAMIXNamedEntity new name: 'test') forIt: [ >>> view shape rectangle. >>> view nodes: (1 to: 20). >>> view verticalLineLayout. ]. >>> >>> I got the result in the attachment. >>> >>> <Mondrian-2011-01-19-1914.png> >>> >>> Thanks, >>> >>> 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 > > > _______________________________________________ > Moose-dev mailing list > [hidden email] > https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com "What is more important: To be happy, or to make happy?" _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
i did change it.
Thanks Fabrizio On 19 Jan 2011, at 21:52, Tudor Girba wrote: > Hi Fabrizio, > > I added you to the Members list ([hidden email]). You should be able to edit the issue now if you are logged in with the Google account. > > Cheers, > Doru > > > On 19 Jan 2011, at 21:33, Fabrizio Perin wrote: > >> Hi Alex, >> thanks for the quick answer. I did open the issue but i couldn't edit the entry so i don't now how put you in cc or say that is related to the component Mondrian. >> Here the link: >> >> https://code.google.com/p/moose-technology/issues/detail?id=498 >> >> tell me is i should add something. In the meanwhile i will try your work around. >> >> Cheers, >> >> Fabrizio >> >> On 19 Jan 2011, at 19:40, Alexandre Bergel wrote: >> >>> Arg... It looks like to be a bug. Consider: >>> >>> | builder | >>> builder := MOFormsBuilder new. >>> builder column; fill; pref; grow. >>> builder row; fill; row; fill; pref; grow. >>> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >>> builder x: 1 y: 2 add: MORectangleShape new. >>> builder x: 1 y: 2 add: MOChildrenShape new. >>> view shape: builder shape. >>> >>> view node: 'hello' forIt: [ >>> view nodes: (1 to: 5). >>> view verticalLineLayout >>> ] >>> <Screen shot 2011-01-19 at 15.37.09.png> >>> >>> Can you open an entry in google and put me in Cc? >>> >>> In the meantime, you can use something like: >>> >>> view node: #yourNode forIt: [ >>> view shape label. >>> view node: 'hello'. >>> >>> view node: 'hello' forIt: [ >>> view nodes: (1 to: 5). >>> view verticalLineLayout >>> ]. >>> view verticalLineLayout gapSize: 1; stretchHorizontally >>> ] >>> >>> Alexandre >>> >>> >>> On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: >>> >>>> Hi, >>>> i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. >>>> >>>> By using this shape definition: >>>> >>>> tableShape >>>> | builder | >>>> >>>> builder := MOFormsBuilder new. >>>> >>>> builder column; fill; pref; grow. >>>> builder row; fill; pref; grow; row; fill; pref; grow. >>>> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >>>> builder x: 1 y: 2 add: MORectangleShape new. >>>> builder x: 1 y: 2 add: MOChildrenShape new. >>>> >>>> ^view shape: builder shape >>>> >>>> >>>> and using this visualization script: >>>> >>>> view shape tableShape. >>>> view node: (FAMIXNamedEntity new name: 'test') forIt: [ >>>> view shape rectangle. >>>> view nodes: (1 to: 20). >>>> view verticalLineLayout. ]. >>>> >>>> I got the result in the attachment. >>>> >>>> <Mondrian-2011-01-19-1914.png> >>>> >>>> Thanks, >>>> >>>> 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 >> >> >> _______________________________________________ >> Moose-dev mailing list >> [hidden email] >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > -- > www.tudorgirba.com > > "What is more important: To be happy, or to make happy?" > > > _______________________________________________ > 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 |
Ok, I will have a look at it
Alexandre On 19 Jan 2011, at 18:27, Fabrizio Perin wrote: > i did change it. > > Thanks > > Fabrizio > > On 19 Jan 2011, at 21:52, Tudor Girba wrote: > >> Hi Fabrizio, >> >> I added you to the Members list ([hidden email]). You should be able to edit the issue now if you are logged in with the Google account. >> >> Cheers, >> Doru >> >> >> On 19 Jan 2011, at 21:33, Fabrizio Perin wrote: >> >>> Hi Alex, >>> thanks for the quick answer. I did open the issue but i couldn't edit the entry so i don't now how put you in cc or say that is related to the component Mondrian. >>> Here the link: >>> >>> https://code.google.com/p/moose-technology/issues/detail?id=498 >>> >>> tell me is i should add something. In the meanwhile i will try your work around. >>> >>> Cheers, >>> >>> Fabrizio >>> >>> On 19 Jan 2011, at 19:40, Alexandre Bergel wrote: >>> >>>> Arg... It looks like to be a bug. Consider: >>>> >>>> | builder | >>>> builder := MOFormsBuilder new. >>>> builder column; fill; pref; grow. >>>> builder row; fill; row; fill; pref; grow. >>>> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >>>> builder x: 1 y: 2 add: MORectangleShape new. >>>> builder x: 1 y: 2 add: MOChildrenShape new. >>>> view shape: builder shape. >>>> >>>> view node: 'hello' forIt: [ >>>> view nodes: (1 to: 5). >>>> view verticalLineLayout >>>> ] >>>> <Screen shot 2011-01-19 at 15.37.09.png> >>>> >>>> Can you open an entry in google and put me in Cc? >>>> >>>> In the meantime, you can use something like: >>>> >>>> view node: #yourNode forIt: [ >>>> view shape label. >>>> view node: 'hello'. >>>> >>>> view node: 'hello' forIt: [ >>>> view nodes: (1 to: 5). >>>> view verticalLineLayout >>>> ]. >>>> view verticalLineLayout gapSize: 1; stretchHorizontally >>>> ] >>>> >>>> Alexandre >>>> >>>> >>>> On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: >>>> >>>>> Hi, >>>>> i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. >>>>> >>>>> By using this shape definition: >>>>> >>>>> tableShape >>>>> | builder | >>>>> >>>>> builder := MOFormsBuilder new. >>>>> >>>>> builder column; fill; pref; grow. >>>>> builder row; fill; pref; grow; row; fill; pref; grow. >>>>> builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). >>>>> builder x: 1 y: 2 add: MORectangleShape new. >>>>> builder x: 1 y: 2 add: MOChildrenShape new. >>>>> >>>>> ^view shape: builder shape >>>>> >>>>> >>>>> and using this visualization script: >>>>> >>>>> view shape tableShape. >>>>> view node: (FAMIXNamedEntity new name: 'test') forIt: [ >>>>> view shape rectangle. >>>>> view nodes: (1 to: 20). >>>>> view verticalLineLayout. ]. >>>>> >>>>> I got the result in the attachment. >>>>> >>>>> <Mondrian-2011-01-19-1914.png> >>>>> >>>>> Thanks, >>>>> >>>>> 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 >>> >>> >>> _______________________________________________ >>> Moose-dev mailing list >>> [hidden email] >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> -- >> www.tudorgirba.com >> >> "What is more important: To be happy, or to make happy?" >> >> >> _______________________________________________ >> 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 -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. _______________________________________________ Moose-dev mailing list [hidden email] https://www.iam.unibe.ch/mailman/listinfo/moose-dev |
In reply to this post by Fabrizio Perin
This is now fixed.
The comment of Version 2.55 of Mondrian: -=-=-=-=-=-=-=-=-=-=-=-= Fixed Issue 498: the sizes of the rectangles into built shape are the same Merged with Mondrian-Core-TudorGirba.44 and Mondrian-Easel-Ivan_Rojas.27 -=-=-=-=-=-=-=-=-=-=-=-= Cheers, Alexandre On 19 Jan 2011, at 15:20, Fabrizio Perin wrote: > Hi, > i got a strange behaviour from Mondrian trying to build a shape for data base tables. Basically defining a shape which contains a rectangle with a title and a children shape it happen that the rectangle containing the title have the same size of the children shape. Is it a bug or is a problem of my code? Below the code that i use, copy and paste in MOShapeSelector the tableShape method and than in a normal mondrian easel window you should be able to reproduce the same behaviour with the snippet below. > > By using this shape definition: > > tableShape > | builder | > > builder := MOFormsBuilder new. > > builder column; fill; pref; grow. > builder row; fill; pref; grow; row; fill; pref; grow. > builder x: 1 y: 1 add: (MORectangleShape new text: [:table | table name]; fontSize: 10). > builder x: 1 y: 2 add: MORectangleShape new. > builder x: 1 y: 2 add: MOChildrenShape new. > > ^view shape: builder shape > > > and using this visualization script: > > view shape tableShape. > view node: (FAMIXNamedEntity new name: 'test') forIt: [ > view shape rectangle. > view nodes: (1 to: 20). > view verticalLineLayout. ]. > > I got the result in the attachment. > > <Mondrian-2011-01-19-1914.png> > > Thanks, > > 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 |
Free forum by Nabble | Edit this page |