Hello All.
Newbie here. Trying to create a Table which fills 100% of it's parent's width.
Here's my code:
...
<td id='tbl_parent'>
<script type='text/javascript'>
var tbl_model = new qx.ui.table.model.Simple();
tbl_model.setColumns(['column1','column2']);
tbl_model.addRows([ [ ... ]] );
var tbl = new qx.ui.table.Table(tbl_model);
tbl.setHeight('100%');
tbl.setWidth('100%');
var tbl_inline = new qx.ui.basic.Inline('tbl_parent');
tbl_inline.setHeight('auto');
tbl_inline.setWidth('auto');
tbl_inline.add(tbl);
tbl_inline.addToDocument();
</script>
</td>
....
It renders the table but doesn't fill entire <td>. I tried setting table width
to auto but it did the same. Is there a way to do this?
Also, what's the difference between setWidth('auto') and setWidth('100%') and
setWidth(null) ?
Thanks
- Praveen -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel