[squeak-dev] Event Theatre in Object Catalog sparks DNU in 6.0-trunk
Bob Arning
arning315 at comcast.net
Sun Feb 18 23:35:40 UTC 2018
FlapTab has this...
positionObject: anObject atEdgeOf: container
"anObject could be myself or my referent"
edgeToAdhereTo == #left ifTrue: [^ anObject left: container left].
edgeToAdhereTo == #right ifTrue: [^ anObject right: container
right].
edgeToAdhereTo == #top ifTrue: [^ anObject top: container top].
edgeToAdhereTo == #bottom ifTrue: [^ anObject bottom: container
bottom]
while InteriorFlapTab has this...
positionObject: anObject atEdgeOf: container
"anObject could be myself (the flap tab) or my referent (the
flap body)."
anObject == self ifTrue: [^ super positionObject: anObject
atEdgeOf: container]. "The tab itself"
(#(top left) includes: edgeToAdhereTo) ifTrue:
[^ anObject topLeft: container innerBounds topLeft].
(edgeToAdhereTo = #bottom) ifTrue:
[^ anObject bottomLeft: container innerBounds bottomLeft].
anObject topRight: container innerBounds topRight
which assumes <container> responds to #innerBounds and not simply #left,
#right, etc. Since some users are sending a Rectangle rather than a
Morph, you could add this to Rectangle...
innerBounds
^self
and the flaps are working again.
On 2/18/18 5:03 PM, David T. Lewis wrote:
> I put fixes into Etoys in trunk, and Morphic-dtl.1396 in the inbox. I'll
> move that to trunk also if there are no problems with it.
>
> Next issue to look at: The Navigator and Supplies tabs in a EventRecordingSpace
> are not working. Do "EventRecordingSpace open", then click on one of the
> tabs, result is a MessageNotUnderstood: Rectangle>>innerBounds error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180218/420320e7/attachment.html>
More information about the Squeak-dev
mailing list
|