On Mon, Jun 11, 2012 at 8:55 AM, Florin Jurcovici <
[email protected]> wrote:

> Hi.
>
> I am back on qooxdoo after a bit over a year of pause, and find myself
> struggling with beginner problems.
>
> How do I add a widget to a qx.application.Standalone.getRoot() so that the
> added widget occupies the whole screen?
> qx.application.Standalone.getRoot().setLayout(qx.ui.layout.Grow()) raises
> an error.
>
> Adding a qx.ui.splitpane.Pane or a qx.ui.container.Composite directly to
> qx.application.Standalone.getRoot() only draws it on a small area of the
> whole screen.
>

By default, the layout for the root container is qx.ui.layout.Canvas. That
layout supports the left, top, right, and bottom attributes, so you can
provide each of them when you add the widget:

this.getRoot().add(widget, { left:0, top:0, right:0, bottom:0 });

A shortcut for that, if the values for all four are the same, is edge:

this.getRoot().add(widget, { edge:0 });

Derrell
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to