[Etoys] TransformationMorph issue
Yoshiki Ohshima
yoshiki at vpri.org
Mon Dec 8 01:05:42 EST 2008
At Sat, 06 Dec 2008 14:29:21 +0100,
Karl Ramberg wrote:
>
> Yoshiki Ohshima wrote:
> > At Fri, 05 Dec 2008 21:54:05 +0100,
> > karl wrote:
> >
> >> When using TransformationMorph the extent of the tranformation is not
> >> given back braking the illusion of scale and rotation.
> >> I would assume the right thing would be to return owner extent to a
> >> scaled morph ?
> >>
> >
> > Can you elaborate the situation a bit?
>
> I was trying to get the right dimensions reflected when the painting
> full screen preference is turned on. The PaintBoxMorph is scaled up on
> the OLPC and is slightly offscreen because of this. But to get its
> bounds after scaling is not straight forward because of the transformation.
> Try this
> morph := Morph new openInWorld.
> morph extent => 50 at 40
> morph scaleFactor: 2 (There is also a bug in scaleFactor: if the morph
> owner is nil )
> morph extent => 50 at 40
>
> This is complicates general code a bit as one must do all kind of
> contortions to get the right extent.
Ah, right. So for this case, you might have to say "morph isFlexed"
and check owner's extent if it is true?
-- Yoshiki
More information about the Etoys
mailing list