How can I create with Qooxdoo a user resizeable Window
where the content is made out of a few widgets (e.g. Label
s) where the display of some is disabled when the space isn't enough?
Example:
I have the three labels "unimportant" (right aligned), "very important" (left aligned) and "must have" (right) in the HBox
. Any extra space should go just right of the left most label to keep the alignment requirements.
In ASCII art this would look like:
--------------------------------------------------------
|very important| |unimportant|must have|
--------------------------------------------------------
-----------------------------------------------
|very important| |unimportant|must have|
-----------------------------------------------
--------------------------------------
|very important|unimportant|must have|
--------------------------------------
-------------------------------
|very important| |must have|
-------------------------------
<-- making the window smaller
--------------------------
|very important|must have|
--------------------------
-------------------
| |must have|
-------------------
-----------
|must have|
-----------
The minimal width of the Window would be the space that "must have" requires.
Bonus question: the "unimportant" would actually be a label for "must have" which can be a widget that takes more vertical space. So both should be centered to each other, something that an Atom
with those two might be normally used for.