[etoys-notify] [JIRA] Commented: (SQ-628) Problem when placing scaled objects in a Holder
Karl Ramberg (JIRA)
tracker at squeakland.org
Sun Mar 18 11:30:52 EDT 2012
[ http://tracker.squeakland.org/browse/SQ-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=40461#action_40461 ]
Karl Ramberg commented on SQ-628:
---------------------------------
I found the place where the error happens, but I'm not sure if I fixed it correctly and if the fix cause any side effects.
TransformationMorph>>extent: newExtent
| scaleFactor |
self adjustAfter:
[scaleFactor _ (self scale * newExtent r / self fullBounds extent r) max: 0.1.
self scale: scaleFactor "(scaleFactor detentBy: 0.1 atMultiplesOf: 1.0 snap: false)"]
I commented out the scaleFactor detentBy:... and there are no more arbitrary scaling in the holder on drag and drop.
> Problem when placing scaled objects in a Holder
> -----------------------------------------------
>
> Key: SQ-628
> URL: http://tracker.squeakland.org/browse/SQ-628
> Project: squeakland
> Issue Type: Bug
> Components: etoys
> Reporter: Stephen Thomas
> Fix For: future release
>
> Attachments: TransformationMorph.kfr.2.cs.gz
>
>
> To recreate:
> 1) Take a Rectangle and makes its width and length 500.
> 2) Then set the scale factor
> 3) Make four copies of the Rectangle
> 4) Drag the Rectangles into a Holder.
> The Rectangles in the holder shrink as you add more Rectangles.
--
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