[etoys-notify] [JIRA] Updated: (SQ-727) Using include tile in a "non-playfield" object can have strange behavior

Bert Freudenberg (JIRA) tracker at squeakland.org
Mon Jun 28 13:42:10 EDT 2010

     [ http://tracker.squeakland.org/browse/SQ-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bert Freudenberg updated SQ-727:

    Attachment: Morph-goHome.st

When embedding an object in another by tile, the embedded object is moved to lie within the bounds of its new owner. That check is a little too eager. If the top was outside it would move the object down to be fully within, then check if the bottom was outside and move it fully up.

Attaching preliminary fix.

The real fix should check if the new owner is clipping (e.g. in a playfield or holder) to retain the old behavior (move it fully inside), if not, use the new behavior (move it just to touch the bounds).

> Using include tile in a "non-playfield" object can have strange behavior
> ------------------------------------------------------------------------
>                 Key: SQ-727
>                 URL: http://tracker.squeakland.org/browse/SQ-727
>             Project: squeakland
>          Issue Type: Bug
>          Components: etoys
>            Reporter: Stephen Thomas
>         Attachments: Morph-goHome.st, pi-BugWithinclude.002.pr
> To re-create:
>  1) Load Attached project
>  2) Drag the "Triangle 19's myCircle: include: Triangle 19's myTriangle" into the circumscribe script at the end of the repeat block
>  3) fire the circumscribe script (can use button, instead of moving script)
> When you add the inclue tile the x,y of the copied triangles shift. BUT it does not happen if the  # of sides of the polygon is set to >=5.
> For even stranger behavior in change Step to to move the include file right after the "Triangle 19's myTirangle <- Triangle 19's copy. When I do this is seems as if only one triangle is embedded in the circle.
> If you put the same tile in the "inscribe" script there does not seem to be any problems. Note; the inscribe has the include tile.
> On Mac OS X 10.6.4

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the etoys-notify mailing list