JB wrote:
> I have a SelectBox in a Grid layout. I've set the column of the Grid
> layout to the necessary width and I know it is being honored because the
> second column is pushed over providing plenty of room.
>
> Now I have added a couple of items ListItems to the SelectBox and when I
> click on the down arrow to expand the box it lists the items. However,
> I would like the SelectBox to occupy the entire width of the Grid
> column. Right now it is very short and simply adds a "..." to the end
> of the truncated first list item.
>
> Any suggestions?
I tried that in the playground :
var doc = this.getRoot();
var comp = new qx.ui.container.Composite();
doc.add(comp);
var grid = new qx.ui.layout.Grid();
grid.setColumnWidth(0, 350);
comp.setLayout(grid);
var selectBox = new qx.ui.form.SelectBox();
for (var i=0; i<42; i++)
{
var tempItem = new
qx.ui.form.ListItem("Loooooooooooooooooooooooooooooooong item " + i);
selectBox.add(tempItem);
}
selectBox.setWidth(200);
comp.add(selectBox, {row: 0, column: 0});
var label = new qx.ui.basic.Label("column 2");
comp.add(label, {row: 0, column: 1});
The SelectBox automatically occupies the whole column width (350), even if I do
selectBox.setWidth(200);
To get the SelectBox not occupy the entire width I had to do
selectBox.setMaxWidth(200). Maybe in your case the max width is too short ?
HTH.
--
Loïc Bresson
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel