'From Cuis 5.0 of 7 November 2016 [latest update: #3725] on 6 May 2019 at 11:29:03 am'!

!Morph methodsFor: 'meta-actions' stamp: 'KenD 5/6/2019 11:25:55'!
potentialEmbeddingTargets
	"Return the potential targets for embedding the receiver"
	| myRect myWorld |
	owner ifNil:[^#()].
	myWorld := owner world ifNil:[^#()].
	myRect := self morphBoundsInWorld.
	^myWorld world submorphs select: [ :m |
			m isReallyVisible 
				and: [ m isLocked not 
					and: [ (m morphBoundsInWorld intersects: myRect)
						and: [ m ~= self ]]]
		].
! !
