Hi all,
I'm looking to create a container with one widget left justified and
one right justified (for example, a text label on the left and a
textfield on the right), but I'd like it so that when the page is
resized to the point where both widgets cannot fit on the same line,
the one on the right slides down into a second row but *stays right
justified.* Essentially, I want a Flow layout that supports flex
values so I can force the two widgets to opposite sides of the
container but also get the flowing to a new line when there's not
enough room. And when the flowing occurs, I'd like the new line to be
right aligned (unlike with a standard Flow layout).
Pictorially (hopefully this looks right in a fixed width font), this
is what I'd like:
When the container is wide:
------------------------
|AAAAA BBBBB|
------------------------
When it gets narrower:
-----------------
|AAAAA BBBBB|
-----------------
and eventually the right widget slides under the left widget:
----------
|AAAAA |
| BBBBB|
----------
Is there a way to achieve this with the current set of layouts? I know
I can do something complex like use an HBox layout and then
dynamically change to a VBox (with different alignX values) when the
container is resized, but I'd much prefer just leaving this up to the
layout system itself.
Can anyone recommend an existing solution or a quick way to achieve
this behavior?
Thanks!
Andrew
------------------------------------------------------------------------------
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