On Mon, Nov 10, 2008 at 6:03 PM, Jean-Baptiste BRIAUD -- Novlog <
[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to use the qx.ui.layout.Grid. I took the demo as an
> example, but I got that error that turn me mad :
>
> [Exception... "'Error: The layout properties 'row' and 'column' must
> be defined!' when calling method: [nsIDOMEventListener::handleEvent]"
> nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
> "<unknown>" data: no]
>
> any idea ?
Yup. Take a look at the API documentation for the Grid layout. You need to
provide a row and column number. The example in the docs is this:
var layout = new qx.ui.layout.Grid();
layout.setRowFlex(0, 1); // make row 0 flexible
layout.setColumnWidth(1, 200); // set with of column 1 to 200 pixel
var container = new qx.ui.container.Composite(layout);
container.add(new qx.ui.core.Widget(), {row: 0, column: 0});
container.add(new qx.ui.core.Widget(), {row: 0, column: 1});
container.add(new qx.ui.core.Widget(), {row: 1, column: 0, rowSpan: 2});
Note that each time a widget is added to the container, the row and column
are specified.
Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel