Try this:
flowPanel.setAllowGrowX(false);

That should do the trick,
Matt

Ftelf wrote:
> Hi,
> I'm trying to get work FlowLayout Container inside Scroll container but not
> success so far. There is always only the first line visible in Composite
> with FlowLayout inside the Scroll containter. I have been debugging
> layouting a little but it is too complex for me. I have found out that
> getHeightForWidth in FlowLayout is called properly and returns correct
> value. Than _computeSizeHint returns height only for hightest widget, but
> according to doc it have to be so. But renderLayout is always called with
> the height from the hint method no matter what.
> 
> FlowLayout[2g]: _computeSizeHint:1365:444
> FlowLayout[2g]: getHeightForWidth:1175:896
> FlowLayout[2g]: _computeSizeHint:1365:444
> FlowLayout[2g]: getHeightForWidth:1175:896
> FlowLayout[2g]: renderLayout:1175:444
> FlowLayout[2g]: getHeightForWidth:1159:896
> FlowLayout[2g]: renderLayout:1159:444
> 
> I have qx0.8.2. At first I have looked at javadoc that getHeightForWidth is
> not implemented yet, but it should be in qx0.8.1rc or something.
> 
> For simplicity I have created Canvas maximized to browser pane.
> 
> 
> var flowPanel = new qx.ui.container.Composite(new
> mno2.ui.layout.FlowLayout(5));
> 
> // create scroll container
> var scroll = new qx.ui.container.Scroll(flowPanel);
> scroll.add(flowPanel);        
> 
> this.mainPanel.add(scroll, { flex: 1 });
> 
> Anyone get working example with flow inside scroll ?
> 
> Thanks in advance.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to