I would like to recommend Dioc for "Best bug report of the year"
award. :-)  This is a perfect example of the RIGHT way to submit a bug
report.  It does the two things which make it very easy to fix bugs:

1. Succinctly describes exactly how to reproduce the problem.
2. Provides a short code snippet that can be inserted directly into
the skeleton, which demonstrates the problem.

Here's the bug report for everyone to use as an example...

Hello,

I found two problems related to TreeVirtual that has "focusCellOnMouseMove"
property set to "false". Use the following code to reproduce these problems.
1) Select/click "Folder 1" but do not open it. Then click on "+" sign that
corresponds to "Folder 2". As a result "Folder 1" will be expanded/opened but
not "Folder 2".
2) The second problem occurs when focusCellOnMouseMove = false and
openCloseClickSelectsRow = true. Select "Folder 1". Open it by clicking on "+"
sign. Then click on "+" sign that corresponds to "Folder 2". "Folder 1" will be
closed and exception will occur.

Code snippet:

var tree = new qx.ui.treevirtual.TreeVirtual(["Name"]);
tree.set({
    backgroundColor : "white",
    border : "inset-thin",
    left : 10,
    top : 10,
    width : "40%",
    height : "70%"
});
tree.setFocusCellOnMouseMove(false);
//tree.setOpenCloseClickSelectsRow(true);
tree.setStatusBarVisible(false);
var resizeBehavior = tree.getTableColumnModel().getBehavior();
resizeBehavior.set(0, { width:"1*" });
tree.addToDocument();
var dataModel = tree.getDataModel();
var root = dataModel.addBranch(null, "Root", true);
var f1 = dataModel.addBranch(root, "Folder 1", false);
for (var i = 1; i < 10; i++) {
    dataModel.addLeaf(f1, "File 1" + i);
}
var f2 = dataModel.addBranch(root, "Folder 2", false);
for (var i = 1; i < 5; i++) {
    dataModel.addLeaf(f2, "File 2" + i);
}
dataModel.setData();


Best regards,
Dioc

-------------------------------------------------------------------------
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