Flexible sizing of page depending on contents?

27 views
Skip to first unread message

LAWA

unread,
Oct 18, 2009, 10:45:18 AM10/18/09
to jLayout
Hi :)

Thanks for an awsome plug!

Just a quick q.

- Is there a way to make the size of the contents in, lets say, the
center container of the flex layout affect the size/position of the
west,south and east containers? In other words, is it possible for the
layout to expand/shrink depending on contents?

Ciao,
Lars

Bram Stein

unread,
Oct 20, 2009, 5:51:27 AM10/20/09
to jLayout
Hi,

Doesn't it already do that? If you fix one or more of the container's
size, the others will try to accommodate. Perhaps I misunderstood your
question?

Bram

LAWA

unread,
Oct 21, 2009, 12:29:08 PM10/21/09
to jLayout
hmm... to be honest I only tried adding overflowing contents to the N
W C E S example and could not find any way for the S panel to be
pushed down by the C container...

any tips on how to specify this in the script/css?

Ciao

Bram Stein

unread,
Oct 30, 2009, 9:24:12 AM10/30/09
to jla...@googlegroups.com
Hi,

Sorry for the late response, I have been extremely busy. If I
understand you correctly, you can achieve the effect you want by
setting the minimum width of the center to the desired amount, and the
other containers will be pushed down. Without setting any preferred,
minimum or maximum width, the center container will take up the
remaining space after the other containers have been placed.

Alternatively you could change the code of the layout algorithm, or
nest different layouts (some behave differently with respect to which
components are preferred over others.)

If you need more help, perhaps you could make a simple example of the
desired layout, and I'll try to figure out how to do it with the
layout algorithms :)

Best regards,

Bram
Reply all
Reply to author
Forward
0 new messages