[Cuis-dev] LayoutMorph subclass instance #beColumn has not effect
marianomontone at gmail.com
marianomontone at gmail.com
Tue Mar 14 05:27:22 PDT 2023
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
More information about the Cuis-dev
mailing list