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

Stephen Thomas (JIRA) tracker at squeakland.org
Sat Jul 3 00:48:47 EDT 2010


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

Stephen Thomas updated SQ-727:
------------------------------

    Attachment: Morph-goHome-5.st

"round up strays" currently behaves such that if any part of an object is outside the playfield it "edge" outside is set to the edge of its holder.  It seems to me the intended behavior is to bring objects that are not "visible" within the playfield into the playfield such that they can be seen and "clicked on".  So in addition to fixing the fix, I changed the behavior slightly, so that if an object is not "visible and easily grabable" the code "round it up".

Also I believe part of the reason the previous fix did not work is that the self bottom and "box top" are somehow mislabeled.  I say this based on various testing, for example when using the original fix "Morph-goHome.st" if you place a rectangle in a playfield and then move it high above the top. them click "round up strays" which calls goHome, the rectangles bottom is set to the playfields top.

Also this is my first attempt at smalltalk so please check carefully!!!  I really loved the ability to change a method and re-execute it step by step to figure out what was going on and test my fix, would be great if we could do this with scripting tiles ;)

> 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
>            Assignee: Stephen Thomas
>             Fix For: etoys 2010
>
>         Attachments: Morph-goHome-5.st, 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