Hi Amit,
> Hi,
>
> I am using Qooxdoo v0.8 SDK. When I try to set the alignX property for 
> my conatiner (layout VBox), it gives me an error :
>
> Assertion error! The property 'alignX' is not supported by the box 
> layout!: Called assert with 'false'
>
>
> I checked in API, and alignX is indeed a property of VBox. I also 
> checked in the SDK library class of VBox and got the code as :
> this.assert(name === "flex" || name === "height", "The property 
> '"+name+"' is not supported by the box layout!");
>
>   
We have three places where layout information is stored:

1. In the widget itself. The widget has e.g. "margin", "padding" or 
"alignX/Y". These properties can be used by the layouts:
 
  button.setAlignX("center");

2. In the layout instance used. This is what you have found in the API 
docs. The "alignX" property in the HBox will align all children:

  hbox.setAlignX("center");

3. In the layout properties declared while adding a widget to its 
parent. Any layout information specific to a widget/layout combination 
is stored here. The grid uses this to define the widget's cell:

  parent.add(child, {row: 1, column: 3});
> My code snipet is :
>
> this._myBar = new abc.myBarClass();  //extend : 
> qx.ui.container.Composite and has qx.ui.layout.HBox layout
> this.add(this._filterBar, {alignX: "right"}); // extend : 
> qx.ui.container.Composite and has qx.ui.layout.VBox layout
>
> Basically, I am trying to add a container (this._myBar) into another 
> container (with VBox layout).
>
>   
In your case you can either configure the HBox to render all children 
centered (option 2) or set the alignment just for the "filter bar" 
(this._filterBar.setAlign("center"))

Best Fabian



> Can someone point me the error here ?
>
> Regards
>
>   


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas 
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim 
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to