[Cuis-dev] LayoutMorph subclass instance #beColumn has not effect

Luciano Notarfrancesco luchiano at gmail.com
Tue Mar 14 09:40:33 PDT 2023


I don’t have an image to check right now, but I guess the problem is that
beRow is sent in new (after sending initialize) instead of in initialize.
If that’s the case I’d suggest moving it to initialize.

On Tue, 14 Mar 2023 at 19:27 marianomontone--- via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> On 13/3/23 21:47, Alexandre Rousseau <yalexr at gmail.com> wrote:
> > Hmmm. I thought I was. But this still results in a row alignment:
> >
> >     initialize
> >        super initialize.
> >        self
> >          addMorph: (BoxedMorph new :: color: Color red);
> >     addMorph: (BoxedMorph new :: color: Color green);
> >     addMorph: (BoxedMorph new :: color: Color blue);
> >     beColumn.
> >
> >
> > But indeed adding:
> >
> >     MyLayoutMorphSubclass class>>new
> >          ^ self newColumn
> >
> > fixes everything.
>
> Yes, I tried the same and got same result. I followed the code #beColumn
> code, but I'm not able to tell why it happens that way. I feel like it
> should work with a #beColumn call at the end of #initialize, but it doesn't.
>
>     Mariano
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230314/f6e8d1eb/attachment-0001.htm>


More information about the Cuis-dev mailing list