Hello,

I am doing complex layouts involving Table and TreeVirtual and
constantly run into a wierd problem: under specific circumstances, the
Table and the TreeVirtual (which inherits from the Table) start growing
in their width without stopping, eventually resulting in a browser
crash. There must be some indefinite loop or something. I have made a
video screenshot to demonstrate the behaviour:

http://m41s09.vlinux.de/table-problem.avi (works in quicktime or ms
mediaplayer, not in vlc media player)

Here are the relevant code bits

var authConfigWindow = new qx.ui.window.Window("Configure Application
Access / Authorizations");
authConfigWindow.setWidth(500);
authConfigWindow.setHeight(400);
authConfigWindow.setShowMinimize(false);
authConfigWindow.setShowClose(true);
authConfigWindow.setDisplay(true);
authConfigWindow.setModal(false);

qx_id4513083.add(authConfigWindow);

var qx_id4518076 = new qx.ui.layout.VerticalBoxLayout();
qx_id4518076.setDimension("100%" ,"100%");
authConfigWindow.add(qx_id4518076);

[...]
var qx_id4518106 = new qx.ui.splitpane.VerticalSplitPane("3*","1*");
qx_id4518106.setTop(0);
qx_id4518106.setLeft(0);
qx_id4518106.setWidth("100%");
qx_id4518106.setHeight("1*");
qx_id4518106.setShowKnob(true);
qx_id4518076.add(qx_id4518106);
var qx_id4518155 = qx_id4518106.getTopArea();

var qx_id4518064 = new qx.ui.layout.VerticalBoxLayout();
qx_id4518064.setDimension("100%" ,"100%");
qx_id4518155.add(qx_id4518064);

var qx_id4517763 = new qx.ui.splitpane.HorizontalSplitPane(250,250);
qx_id4517763.setTop(0);
qx_id4517763.setLeft(0);
qx_id4517763.setWidth("100%");
qx_id4517763.setHeight("1*");
qx_id4517763.setShowKnob(true);
qx_id4518064.add(qx_id4517763);
var qx_id4518038 = qx_id4517763.getLeftArea();

var authConfigLeftTree = new qx.ui.treevirtual.TreeVirtual(['Users/Roles']);
authConfigLeftTree.setSelectionMode(qx.ui.treevirtual.TreeVirtual.SelectionMode.MULTIPLE_INTERVAL);
authConfigLeftTree.setLeft(0);
authConfigLeftTree.setTop(0);
authConfigLeftTree.setWidth(245);
authConfigLeftTree.setHeight("100%");
authConfigLeftTree.setBackgroundColor("white");
authConfigLeftTree.setBorder("inset");
authConfigLeftTree.setAlwaysShowOpenCloseSymbol(true);
authConfigLeftTree.setContextMenu(contextMenuAuthConfig);
authConfigLeftTree.setSortChildNodesBy({'label':'asc'});
authConfigLeftTree.setSortAfterDrop(true);
authConfigLeftTree.setEnableDragDrop(true);
[...]

var qx_id4518756 = qx_id4517763.getRightArea();

var authConfigRightTree = new
qx.ui.treevirtual.TreeVirtual(['Roles/Permissions']);
authConfigRightTree.setSelectionMode(qx.ui.treevirtual.TreeVirtual.SelectionMode.MULTIPLE_INTERVAL);
authConfigRightTree.setLeft(0);
authConfigRightTree.setTop(0);
authConfigRightTree.setWidth(245);
authConfigRightTree.setHeight("100%");
authConfigRightTree.setBackgroundColor("white");
authConfigRightTree.setBorder("inset");
authConfigRightTree.setAlwaysShowOpenCloseSymbol(true);
authConfigRightTree.setContextMenu(contextMenuAuthConfig);
authConfigRightTree.setSortChildNodesBy({'label':'asc'});
authConfigRightTree.setSortAfterDrop(true);
authConfigRightTree.setEnableDragDrop(true);
[...]

var qx_id4514463 = qx_id4518106.getBottomArea();

var qx_id4518398 = new qx.ui.layout.VerticalBoxLayout();
qx_id4518398.setDimension("100%" ,"100%");
qx_id4514463.add(qx_id4518398);

var qx_id4518102_tableModel = new qx.ui.table.model.Simple();
qx_id4518102_tableModel.setColumns(['Property','Label','Value']);
qx_id4518102_tableModel.setColumnEditable(2,true);
var qx_id4518102_resizeBehaviour = { tableColumnModel : function(obj){
return new qx.ui.table.columnmodel.Resize(obj); } };
var qx_id4518102 = new
qx.ui.table.Table(qx_id4518102_tableModel,qx_id4518102_resizeBehaviour);
qx_id4518102.getTableColumnModel().getBehavior().setWidth(0,"20%");
qx_id4518102.getTableColumnModel().getBehavior().setWidth(1,"20%");
qx_id4518102.getTableColumnModel().getBehavior().setWidth(2,"80%");
qx_id4518102.getTableColumnModel().setColumnVisible(0,false);
qx_id4518102.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);
qx_id4518102.setDimension("100%" ,"1*");
qx_id4518102.setColumnVisibilityButtonVisible(false);
qx_id4518102.setKeepFirstVisibleRowComplete(true);
qx_id4518102.setStatusBarVisible(false);
qx_id4518102.setBorder("inset-thin");
qx_id4518102.setDataBinding(true);
qx_id4518398.add(qx_id4518102);




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to