Mantis - Squeak
Viewing Issue Advanced Details
5500 Morphic minor always 11-23-06 15:33 11-25-08 22:48
dse  
 
normal  
closed  
fixed  
none    
none 3.10  
0005500: many rotated mor
Resist being picked up
doesnt work with many objects when are rotated.
By example: Rectangle, Ellipse, Sketch doesnt work
Polygon, Curve works.

I discovered in 3.8 versions, but in 3.9 the bug persists.
 TransformationMorph-isSticky.st [^] (252 bytes) 11-24-06 08:25
 StickynessBugz-wiz.st [^] (1,094 bytes) 07-28-07 22:57

Notes
(0008423)
wiz   
11-24-06 07:01   
When tilted ellipses and rectangles are rendered by a TransformationMorph.
Though the rectangle has be set to resist pickup the transformation morph has not. So it picks up.
Apparently you can mark a tilted rectangle to resist being picked up. It will not affect the transformation morph. In other words you can still pick up the tilted rectangle. Returning the rectangle to its unrotated position makes it resist however.

PolygonMorphs and subclasses do their own tilting w/o using the rendering morphs so they are not affected by the problem.
The fix would be to have the transformation morphs check their rendee before choosing to be picked up.
If you want to fix this look at pasteup morph to see how it decides to allow a morph within it to be lifted.

The difference between choices have made polygons and rendered morphs mean they behave differently when tilted or stretched. My personal path has been to rely more on polygons and less on the renderable morphs.

In 3.9 closed curves can be made to resemble ovals or rectangles. And mixed curves are capable of many shapes inbetween.

I've currently been making progess in getting polygons to tilt and stetch more usefully.

Yours in service, --Jerome Peace

(0008426)
wiz   
11-24-06 08:28   
Attached Files  TransformationMorph-isSticky.st
That does the trick. At least for rectangles and ellipses and other morphs rendered by TransformationMorph .

StickynessBugz.st provides the test that tells the difference.
Caveat: When the test fails the tilted rectangle in the middle of the screen is left behind. (I have not figured how to do that clean up yet.)

Yours in service, -Jerome Peace

(0010945)
wiz   
07-28-07 22:59   
"fix begin"
Installer mantis bug: 5500 fix: 'TransformationMorph-isSticky.st'.
"fix test"
Installer mantis bug: 5500 fix: 'StickynessBugz-wiz.st'.
"fix end"
(0010946)
wiz   
07-28-07 23:01   
New test StickynessBugz-wiz.st has been made a subclass of MorphUIBugTest which allows for proper tear down.

Yours in curiosity and service, --Jerome Peace
(0010947)
wiz   
07-28-07 23:03   
Reminder sent to: edgardec

Hi Edgar,

I've made so many fixes, apparently I forgot a few.
You may wish to consider this one it patches another transformation morph bug.

Cheers --Jer
(0010965)
edgardec   
08-08-07 10:18   
This now is 7138TransformationMorph-isSticky.cs and was in updates for 3.10
Thanks Jerome !
(0012799)
KenCausey   
11-25-08 22:48   
Harvested as update 7138 and released with Squeak 3.10.