AlignmentMorphs and LayoutFrames

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

AlignmentMorphs and LayoutFrames

Ralph Boland
If I nest a number of morphs using ProportionalLayout and LayoutFrames
everything seems to work out fine.
However. if at some point in the nesting of the morphs I use
an AlighmentMorph both the AlignmentMorph and most morphs
within the window expand beyond their right bounds and all align
vertically at a point far off to the right.
All affected morphs are about twice a wide as
they should be.  The main window is not affected.
The morphs within the AlignmentMorph are also not affected.
The affected morphs that do not contain the Alignment morph
have no child morphs or the child morphs are not affected.

If however, if I  place the AlignmentMorph within morphs not
using LayoutFrames then everything is OK.

This seems to suggest that AlignmentMorphs should not be placed
within morphs placed using  LayoutFrames.  (I see no reason for this rule).

Is this true or is the problem a bug (presumably within my code though
I don't see where)?

I certainly don't see why placing a morph should affect the size of
the morphs that contain it let alone those that don't contain it.



Regards,

Ralph Boland




--
Had a wife and kids in Florida, Jack (Nicklaus)
Went out for a "ride" but I couldn't get back
As a ten timer being hunted down
OR
When the wife found out who I was knowing (biblically speaking)
I hit a hydrant and I just kept going (till I hit a tree).
...

Reply | Threaded
Open this post in threaded view
|

Re: AlignmentMorphs and LayoutFrames

Jerome Peace

Hi Ralph,

It sounds like you know enough about this to track it down.

Could you make out a mantis report, so we can document and track the problem.

Please give a recipe for achieving the problem from a fresh image.
What you said here would work if you were a little more specific about which morphs you used where. If you describe the SIMPLIST example that will recreate the problem, that will save others time.

Yours in curiosity and service, --Jerome Peace, Fearless bug tracker

>Ralph Boland rpboland at gmail.com
>Sun Feb 14 00:53:46 UTC 2010 wrote:
>

>If I nest a number of morphs using ProportionalLayout and LayoutFrames
>everything seems to work out fine.
>However. if at some point in the nesting of the morphs I use
>an AlighmentMorph both the AlignmentMorph and most morphs
>within the window expand beyond their right bounds and all align
>vertically at a point far off to the right.
><etc.>