« Return to Thread: Automatically resize a qx.ui.form.List according to the number of contained items

Re: Automatically resize a qx.ui.form.List according to the number of contained items

by Fabian Jakobs :: Rate this Message:

Reply to Author | View in Thread

hi Jean-Noël,

> Pretty much everything is in the title: I have a qx.ui.form.List which
> is a acting as a selector. I put a number of entries in it, and I
> would like the box's height to be automatically computed. Currently it
> seems it chooses a default height. Manually calling setHeight() works,
> but is not convenient (I dont know the exact height).
>
> Ideally I would like it to resize automatically when adding or
> removing items to this list.
>
> I tried a lot of things but none worked, I am quite stuck right now.
What happens if you give the list widget a height of "null". This means
"autosize" and should resize the list with its content.

What is the parent layout of the list?

Best fabian



--
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG - Web Technologies
Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
Telefon: +49 721 91374-6784
fabian.jakobs@...

Amtsgericht Montabaur / HRB 6484
Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen
Aufsichtsratsvorsitzender: Michael Scheeren


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

 « Return to Thread: Automatically resize a qx.ui.form.List according to the number of contained items