Hello,

I have a simple Composite widget (container) and I want to place 4 images:

* first is centered horizontally and at top vertically
* second is centered horizontally and at bottom vertically
* third is left horizontally and centered vertically
* fourth is right horizontally and centered vertically

I wanted to use alignX and alignY for this.

The docs say:

Horizontal alignment of the item in the parent layout.

Note: Item alignment is only supported by
LayoutItem<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.LayoutItem>layouts
where it would have a visual effect. Except for
Spacer <http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Spacer>, which
provides blank space for layouts, all classes that inherit
LayoutItem<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.LayoutItem>support
alignment.


Composite inherit LayoutItem, so it should be OK. However, without any
Layout on the Composite, (or a Basic Layout, or a Canvas layout) it does not
work. The only solution I have found was to use a Dock layout for this, but
isnt there a simpler solution? Eg, the docs seem to say any layout support
alignX and alignY, but in effect, it seems no layout support them at all!...

Am I doing something wrong?

Jean-Noel
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to