[Cuis-dev] LayoutMorph subclass instance #beColumn has not effect
Juan Vuletich
juan at cuis.st
Tue Mar 14 10:58:24 PDT 2023
It should be enough to redefine #new appropriately.
On 3/14/2023 1:40 PM, Luciano Notarfrancesco via Cuis-dev wrote:
> 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 <mailto:cuis-dev at lists.cuis.st>> wrote:
>
> On 13/3/23 21:47, Alexandre Rousseau <yalexr at gmail.com
> <mailto: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 <mailto:Cuis-dev at lists.cuis.st>
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230314/b3020244/attachment.htm>
More information about the Cuis-dev
mailing list