Morph layout changes in P4, P5 or P6

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Morph layout changes in P4, P5 or P6

HilaireFernandes
Hi,

Any idea about what change(s) in P4/P5/P6 could cause this layout mess
in DrGeo window?

I think the changes originated more likely in P4.

Thanks

Hilaire
--
Dr. Geo
http://drgeo.eu

LayoutMess.gif (31K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Morph layout changes in P4, P5 or P6

HilaireFernandes
Found, it is the Layout protocol. It seems to behave differently, at least:

        LayoutFrame fractions: fractionsOrNil offsets: offsetsOrNil

does not behave the same

Le 17/06/2017 à 18:40, Hilaire a écrit :
> I think the changes originated more likely in P4.

--
Dr. Geo
http://drgeo.eu


Reply | Threaded
Open this post in threaded view
|

Re: Morph layout changes in P4, P5 or P6

Nicolai Hess-3-2


2017-06-17 19:35 GMT+02:00 Hilaire <[hidden email]>:
Found, it is the Layout protocol. It seems to behave differently, at least:

        LayoutFrame fractions: fractionsOrNil offsets: offsetsOrNil

does not behave the same

Le 17/06/2017 à 18:40, Hilaire a écrit :
> I think the changes originated more likely in P4.

--
Dr. Geo
http://drgeo.eu



Do you know how to fix it ?

Replacing code like

self window addMorph: treeMorph
                fullFrame: (LayoutFrame
                    fractions: (0@0 corner: 0.2@1)
                    offsets: (0 @ menuBarShiftY 
                        corner: 0@statusHeight negated)).


with


self window addMorph: treeMorph
                fullFrame: ((0@0 corner: 0.2@1) asLayoutFrame topLeftOffset: (0 @ menuBarShiftY) ;bottomRightOffset:  (0@statusHeight negated)).

works for me.



Reply | Threaded
Open this post in threaded view
|

Re: Morph layout changes in P4, P5 or P6

HilaireFernandes
Yes, I commit the fixes.

Now I have issue with the Drawing area. It is wrapped in an Athens
Morphs. I remember it was a temporary hack. Is it still necessary ?

Hilaire

Le 17/06/2017 à 20:12, Nicolai Hess a écrit :
> Do you know how to fix it ?
>

--
Dr. Geo
http://drgeo.eu