[Etoys] TransformationMorph issue
Karl Ramberg
karlramberg at gmail.com
Mon Dec 8 12:01:47 EST 2008
Yoshiki Ohshima wrote:
> 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?
No, because a morph without owner can't be flexed.
Morph>>addFlexShell http://dev.laptop.org/ticket/9084
For PaintBoxMorph one can check the preference for big paint palette,
Karl
More information about the Etoys
mailing list