Morphic layout policy problems

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

Morphic layout policy problems

Bob.Cowdery
Morphic layout policy problems

Hi all

I have a problem with morphic layout policies and I'm not sure if it's a feature, limitation or a bug or if there is something else I need to do. This can be reproduced very quickly using two AlignmentMorphs (Bordered or PasteUp will also do) and 4 SimpleButtonMorphs. Set AlignmentMorph 1 with left to right wrapping. Embed the buttons in AlignmentMorph 1. Adjusting the size of AlignmentMorph 1 causes the buttons to flow properly between horizontal and vertical alignment. Now size AlignmentMorph 1 until the buttons are in a vertical row and size AlignmentMorph 2 to be about the same size and embed AlignmentMorph1 in 2. Now sizing AlignmentMorph2 will flow the buttons progressively outwards until they are in a horizontal row but you can't flow them back in again.

As usual any help appreciated.

Regards
Bob

*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.



Reply | Threaded
Open this post in threaded view
|

Re: Morphic layout policy problems

karl-8
[hidden email] skrev:

> Hi all
>
> I have a problem with morphic layout policies and I'm not sure if it's a
> feature, limitation or a bug or if there is something else I need to do.
> This can be reproduced very quickly using two AlignmentMorphs (Bordered or
> PasteUp will also do) and 4 SimpleButtonMorphs. Set AlignmentMorph 1 with
> left to right wrapping. Embed the buttons in AlignmentMorph 1. Adjusting the
> size of AlignmentMorph 1 causes the buttons to flow properly between
> horizontal and vertical alignment. Now size AlignmentMorph 1 until the
> buttons are in a vertical row and size AlignmentMorph 2 to be about the same
> size and embed AlignmentMorph1 in 2. Now sizing AlignmentMorph2 will flow
> the buttons progressively outwards until they are in a horizontal row but
> you can't flow them back in again.
>
> As usual any help appreciated.
Morphic Layout is a replacement for the AlignmentMorph.
So my advise is that if you use either AlignmentMorph or Morphic Layout
but not
together.
Karl




Reply | Threaded
Open this post in threaded view
|

RE: Morphic layout policy problems

Bob.Cowdery
In reply to this post by Bob.Cowdery
RE: Morphic layout policy problems

[hidden email] skrev:
> Hi all
>
> I have a problem with morphic layout policies and I'm not sure if it's a
> feature, limitation or a bug or if there is something else I need to do.
> This can be reproduced very quickly using two AlignmentMorphs (Bordered or
> PasteUp will also do) and 4 SimpleButtonMorphs. Set AlignmentMorph 1 with
> left to right wrapping. Embed the buttons in AlignmentMorph 1. Adjusting the
> size of AlignmentMorph 1 causes the buttons to flow properly between
> horizontal and vertical alignment. Now size AlignmentMorph 1 until the
> buttons are in a vertical row and size AlignmentMorph 2 to be about the same
> size and embed AlignmentMorph1 in 2. Now sizing AlignmentMorph2 will flow
> the buttons progressively outwards until they are in a horizontal row but
> you can't flow them back in again.
>
> As usual any help appreciated.
>> Morphic Layout is a replacement for the AlignmentMorph.
>> So my advise is that if you use either AlignmentMorph or Morphic Layout
>> but not
>> together.
>> Karl

Karl

Thanks for the hint. There was a little mixing going on but basically everything morph wise I use is derived from my base morph which was derived from AlignmentMorph. I have tried changing that to BorderedMorph and quite a lot of behavior is different and possibly a little better but essentially what I said above is still the case. I can't get inner morphs to flow back once they have flowed out.

Bob



*** Confidentiality Notice *** Proprietary/Confidential
Information belonging to CGI Group Inc. and its affiliates
may be contained in this message. If you are not a recipient
indicated or intended in this message (or responsible for
delivery of this message to such person), or you think for
any reason that this message may have been addressed to you
in error, you may not use or copy or deliver this message
to anyone else.  In such case, you should destroy this
message and are asked to notify the sender by reply email.