Hi,
When using Roassal 2 in a glamour browser, the visualization gets clipped
when too large. This appears to occur because the canvas does not adapt to
the container morph (a TRMorph) dimensions and retains its default extent.
To reproduce:
|browser|
browser := GLMTabulator new.
browser title: 'Roassal 2 Visualization'.
browser row: #visu.
browser transmit to: #visu; andShow: [:a |
a roassal2
title: 'Overview';
painting: [ :mondView :entity | view := mondView view.
view addAll: ((RTEllipse new color: Color purple; size: 10) elementsOn:
Collection withAllSubclasses) @ RTDraggable.
RTEdge buildEdgesFromObjects: Collection withAllSubclasses from:
#superclass to: #yourself inView: view.
RTClusterLayout on: view elements edges: view edges.
view edges do: [ :e | e trachelShape pushBack ].
"view canvas extent: (950 @ 550)."
]].
browser openOn: 1.
Did someone notice similar behavior with spec? What would be good is that
TRMorph should update the contained canvas extent when it is resized.
usman
[image: Inline image 2]