[squeak-dev] Event Theatre in Object Catalog sparks DNU in 6.0-trunk
David T. Lewis
lewis at mail.msen.com
Mon Feb 19 01:01:11 UTC 2018
Well that seems simple enough. I added Rectangle>>innerBounds to the inbox
(in Morphic-dtl.1397) and I'll move that to trunk also if no objections
come up in a day or so.
The flaps in an EventRecordingSpace are working now. Somehow I had expected
this problem to be a symptom of some horribly broken refactorings, but
maybe not :-)
Dave
On Sun, Feb 18, 2018 at 06:35:40PM -0500, Bob Arning wrote:
> 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.
>
>
More information about the Squeak-dev
mailing list
|