Hey,
you have to tell the box layout which item should be set to flex which means,
which item should grow or shrink.
container.add(scroll, {flex: 1});
That should fix your problem.
Regards,
Martin
Am 17.01.2012 um 22:09 schrieb Marc:
> Hey Folks,
>
> I'm trying to do VBox width an "Menubar" and an "Content Area".
> If the Stuff in Content Area is bigger than than browser window I want to
> set scrollbars for the Content Area.
>
> Id did a VBox Layout.
> The first Item is the Menubar (red).
> The Second one is the Content Area (green).
>
> http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%22var%2520container%2520%253D%2520new%2520qx.ui.container.Composite%28%29%253B%250A%250Avar%2520layout%2520%253D%2520new%2520qx.ui.layout.VBox%282%252C%2522top%2522%252C%2522main%2522%29%253B%250A%250Acontainer.setLayout%28layout%29%253B%250A%250A%250Acontainer.add%28new%2520qx.ui.core.Widget%28%29.set%28%257B%250A%2520%2520%2520%2520height%253A%252030%252C%250A%2520%2520%2520%2520backgroundColor%253A%2520%2522red%2522%250A%2520%2520%257D%29%29%253B%250A%2520%2520%250A%2520%2520%250Avar%2520scroll%2520%253D%2520new%2520qx.ui.container.Scroll%28%29%253B%250A%250Acontainer.add%28scroll%29%253B%250A%250Ascroll.add%28new%2520qx.ui.core.Widget%28%29.set%28%257B%250A%2520%2520%2520%2520width%253A%2520600%252C%250A%2520%2520%2520%2520minWidth%253A%2520600%252C%250A%2520%2520%2520%2520height%253A%2520400%252C%250A%2520%2520%2520%2520minHeight%253A%2520400%252C%250A%2509backgroundColor%253A%2520%2522green%2522%250A%2520%2520%257D%29%29%253B%250A%2509%2509%250A%250Athis.getRoot%28%29.add%28container%252C%2520%257Bedge%253A%25200%257D%29%253B%22%2C%20%22mode%22%3A%22ria%22%7D
> Demo
>
> For some reason, the Content Area is limited to 200px height. I expected
> that the Scoll Element would so big as the rest of the Browser Window (that
> means: Scroll/ContentArea is BrowserHeight-Menubar). But it doesn't.
>
> The 200px height seems to be initial.
> If I set them to null width:
> /scroll.setHeight(null);/
> The ContentArea gets the full hight of 400px (or whatever). But if shrink
> the Browser Window no Scollers appear....?
>
> Some suggestions?
>
> Regards
>
> Marc
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Scroll-and-100-height-tp7197903p7197903.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel