In your example, your outer container does not have any width set and it
doesn't have a maxWidth set, so, all internal controls can expand it to
accommodate. And since the label needs more room to show all content the
container is more then happy to expend to let it all show. If you don't want
that to happen then you need to set a maxWidth on the container or the
label. So, if you are relying on your designer to make the page look
correct, then your designer need to know all the rules or you are going to
end up with this type of thing more often. In general, the web is fluid
unless you tell it not to be. And since you didn't tell it to stop
expanding, it just kept going. Your example does exactly what I would expect
it to do, and there is no reason to expect it to do any different.
"For example, if you add a TextField in exactly the same way, it does not
cause the composite to grow." - this is not correct. If you add a TextField
to the container, and it has a width of 300 pixels, your container
absolutely will expand to fit because there is nothing telling it not to,
does that make sense? You have placed no restrictions on the container. You
simply created it and asked it to hold a few controls, and it did.
Jim
On Wed, Oct 6, 2010 at 1:52 AM, John Spackman <[email protected]>wrote:
> Hi Jim
>
> Isn't that inconsistent with other controls such as a text field which
> expand to fill the available space? For example, if you add a TextField in
> exactly the same way, it does not cause the composite to grow.
>
> Here's another example that demonstrates this: http://tinyurl.com/32l7ums
>
> The size of the outer composite is a factor of the user interface that you
> design, eg a list must be big enough (height & width) to be readable, a
> toolbar big enough to hold the buttons each of which is big enough for text
> and image etc – and if a label cannot wrap then it must be high enough and
> wide enough to display the text, but the ability to wrap means only that
> the label needs only to be high enough because the width is negotiable.
>
> This becomes an issue for me because I combine tabview pages from various
> sources – generally speaking, each page is roughly the same size but there
> is always some variation and all the other controls expand to fit the
> available space without leaving odd gaps at the side. Having a label at a
> fixed width disaffects the autosizing of the entire app and undoes the good
> work of the layout classes.
>
> John
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel