abergel wrote
A roassal view has a camera attached to it. Moving the camera may actually what you need. Consider this example:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | builder | builder := ROMondrianViewBuilder new. builder nodes: Collection withAllSubclasses. builder edgesFrom: #superclass. builder treeLayout. builder open.
builder raw camera bounds: (0 @ 0 extent: 700 @ 700).
To play with it, you can open an inspector on the view (i.e., builder raw inspect) as illustrated in the screenshot:
Let us know if this fits your need or not.
Hi Alexandre, thank you for the script.
I started playing around with the camera - but despite the fact i read the deep into pharo chapter, I do not really understand the camera metaphor. What exactly do *extent*, *realExtent* and *altitude* stand for - and how would i manipulate them to fit the entire visualization in the window/glamour pane? Can you explain a bit - or is it explained somewhere to a greater extent than in the deep into pharo chapter?
Martin.
-- View this message in context: http://forum.world.st/Zoom-to-fit-pane-for-Roassal-tp4716227p4716437.html Sent from the Moose mailing list archive at Nabble.com.