[Cuis-dev] bug in LayoutMorphEditPanel?

Mark Volkmann r.mark.volkmann at gmail.com
Sat Feb 1 11:23:14 PST 2025


Here are the steps I took to trigger what seems to be a bug:

- evaluate the following in a Workspace:
  Feature require: 'UI-Layout-Panel'
- open the halo for a morph whose owner is the current WorldMorph
- click the blue Menu button
- click "edit me"
- modify the Color
- click the Update button

That opened a MessageNotUnderstood debug window because WorldMorph does not
understand the message layoutSubmorphs. One way to fix this is to modify
the updateMasterFromCopy method in LayoutMorphEditPanel and replace this
line:

original owner ifNotNil: [ :container | container layoutSubmorphs;
redrawNeeded ].

with this:

original owner ifNotNil: [ :container |
    container respondsTo: #layoutSubmorphs :: ifTrue: [
        container layoutSubmorphs; redrawNeeded
    ]
].

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250201/f3ee0965/attachment.htm>


More information about the Cuis-dev mailing list