Possible to fix layout min height & width?

26 views
Skip to first unread message

Joel D'Souza

unread,
Jul 31, 2009, 1:16:56 AM7/31/09
to jLayout
I was wondering if there was a in-built way to fix a container layout
to a particular minimum size (say, 1024x768). Basically, the idea is
to not relayout past a particular height and/or width?

If not, I intend to inspect window.outerHeight and outerWidth and then
relayout accordingly.

Bram Stein

unread,
Jul 31, 2009, 3:04:52 AM7/31/09
to jLayout
Hi,

You should just be able to set the component's or container's min-
width and height using CSS. Then either you browser will pick it up,
or jLayout will when it tries to calculate the minimum size. Remember
that the minimum size of a container is the minimum size of all its
children combined. I could perhaps add some code that check the
minimum and maximum size before it tries to set the size of a
component or container. This will ensure that it also works on
browsers that do not natively support min and max sizes.

Your suggestion will also work.

Let me know if you run into any problems,

Bram
Reply all
Reply to author
Forward
0 new messages