How would I get an ImageMorph to automatically resize inside a Spec UI? I put
it in a PanelMorph with various layout attempts, the latest being:
� � � � image := PanelMorph new
� � � � � � � � changeTableLayout;
� � � � � � � � hResizing: #spaceFill;
� � � � � � � � vResizing: #spaceFill;
� � � � � � � � yourself.
Where image above is an accessor referenced in #spec
Then I added:
� � � � imageMorph := ImageMorph new
� � � � � � � � image: form;
� � � � � � � � hResizing: #spaceFill;
� � � � � � � � vResizing: #spaceFill;
� � � � � � � � yourself.
� � � � image addMorph: imageMorph.
The form shows up as the full original size, but strangely if I bring up the
halos on the ImageMorph and just wiggle the scaling halo, it resizes to fit
the PanelMorph. But then if I resize the window again, the image doesn't
rescale.
Thanks.
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/ImageMorph-scaling-tp4719248.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.