[squeak-dev] The Trunk: Morphic-mt.767.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 1 16:41:44 UTC 2015


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.767.mcz

==================== Summary ====================

Name: Morphic-mt.767
Author: mt
Time: 1 March 2015, 5:41:07.646 pm
UUID: aeb8e33f-7b90-7545-b3fa-b83eb88cad79
Ancestors: Morphic-mt.766

Make TransformMorph use #clipSubmorphs: as specified in Morph. Having this, TransforMorphs can have a #layoutPolicy: again. #layoutBounds overwritten to respect local coordinate system.

=============== Diff against Morphic-mt.766 ===============

Item was removed:
- ----- Method: TransformMorph>>fullBounds (in category 'layout') -----
- fullBounds
- 	"Overridden to clip submorph hit detection to my bounds."
- 	"It might be better to override doLayoutIn:, and remove this method"
- 
- 	fullBounds ifNotNil:[^ fullBounds].
- 	fullBounds := bounds.
- 	submorphs do: [:m| m ownerChanged].
- 	^ fullBounds!

Item was changed:
  ----- Method: TransformMorph>>initialize (in category 'initialization') -----
  initialize
  	"initialize the state of the receiver"
  	super initialize.
  	""
  	
  	smoothing := 1.
+ 	transform := MorphicTransform identity.
+ 	self clipSubmorphs: true.!
- 	transform := MorphicTransform identity!

Item was added:
+ ----- Method: TransformMorph>>layoutBounds (in category 'layout') -----
+ layoutBounds
+ 
+ 	^ (transform globalBoundsToLocal: super layoutBounds) truncated
+ !



More information about the Squeak-dev mailing list