cjrohrbach / BA-GT-Roassal

My bachelor thesis: creating a simple easy to use API to build graphs in GlamorousToolkit.
MIT License
2 stars 3 forks source link

size: on a box does not work properly #35

Closed bergel closed 3 years ago

bergel commented 3 years ago

Consider:

v := CRMondrian new.
v nodes 
    box
    size: [ :nb | nb @ nb ];
    with: (1 to: 10).
v layout grid.
v

It raises an error:

image

I believe this is because in the body of size: should evaluate the argument against the object. In Roassal3 @ Pharo, we have RSShapeBuilder, which does pretty much the job.