Hello guys!
I found serious bug, while I was working on comlpex layouts, you can test it
in playground.
Here is a code snippet:
var win1 = new qx.ui.window.Window("bla bla").set({
width: 400,
height: 300
});
win1.setLayout(new qx.ui.layout.VBox());
var container = new qx.ui.container.Composite(new qx.ui.layout.VBox(4));
var scroll = new qx.ui.container.Scroll(container);
container.add(new qx.ui.basic.Label("Bla bla"), {flex: 1});
var rowData = [];
for(var i =0; i < 2; i++)
{
var rd = [];
rd[0]="id";
rd[1]="num";
rd[2]="dt";
rd[3]="long long long long long";
rowData[rowData.length] = rd;
}
// table model
var tableModel = this._tableModel = new qx.ui.table.model.Simple();
tableModel.setColumns([ "head1", "head2", "head3", "head4" ]);
tableModel.setData(rowData);
// table
var table = new qx.ui.table.Table(tableModel);
table.set({
width: 300,
height: 200
});
container.add(table, {flex : 0});
win1.add(scroll, {flex : 1});
this.getRoot().add(win1, {left: 30, top: 70});
win1.open();
The generated window can be resized to very small size, and all working just
fine.
But I need table to be flexible.
I changed
container.add(table, {flex : 0});
to
container.add(table, {flex : 1});
And I can't resize window to scroll appear - it hangs.
Actually, that's not what I'm doing (I'm trying to get a several flexible
containers to be in Scroll area, but table hangs), but here clearly can be
seen wrong behaviour.
It's best viewed in opera - can be seen that window trying to recalculate
dimensions.
I solved this so: adding table with flex :0, and set minHeight for table.
Can't get password from bugzilla, so posted here :)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel