j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Raymond Tiefenthal wrote:
Btw, I just tried to assign a LayoutFrame to a simple morph from class Morph. The problem is, it just sits there and won't change it's bounds.
m_Morph new openInWorld. m layoutFrame: (LayoutFrame fractions: (0@0 corner: 1.0@0.2) offsets:nil)
I tried with embedding it in other morphs, sending it #changed, sending
it's
owner #changed, but nothing happened. Could you drop a line on the
solution?
I found the solution myself. The owner must have proportional layout and the submorph space fill layout.
m1_Morph new openInWorld. m2_Morph new openInWorld. m2 color: Color green. m1 changeProportionalLayout. m1 addMorph: m2 fullFrame: (LayoutFrame fractions: (0@0 extent: 0.5@1) offsets:nil)
Sorry, I should have tried harder in the first place. OTOH I have spent like 3 hours to figure it out :)
Thanks for sharing, I have not figured out all of the layout stuff myself yet, and small hints can save lot's of hours :-) Karl
squeak-dev@lists.squeakfoundation.org