Thanks for your help, Derrell. Bug 1822 has been filed as a table issue. http://bugzilla.qooxdoo.org/show_bug.cgi?id=1822
Pat On Wed, Jan 7, 2009 at 11:42 AM, Derrell Lipman <derrell.lip...@unwireduniverse.com> wrote: > On Wed, Jan 7, 2009 at 11:09 AM, Patrick Paskvan <patrick.pask...@gmail.com> > wrote: >> >> Hi List, >> >> In 0.7.3, I had a treevirtual control with a couple of editable >> columns. I just got around to testing that part of the app in 0.8 >> (and 0.8.1), and the editable columns aren't editable any longer. >> Using the playground, I set up this sample: > > This appears to be a bug in Table, on which TreeVirtual is based. The code > to create the cell editor is being called, but it's retrieving > this.__focusIndicator.getInnerSize() which yields a size of (-4, -4). > Clearly wrong. > > Would you please post a new bug for this and include the above comment (and > your example app). Fabian is in the midst of a bunch of Table fixes, so I > suspect he'll work on this concurrently. Mark the new bug as a Table issue, > not as a TreeVirtual issue, so that Fabian sees it when he pulls up the list > of Table bugs. > > Derrell > >> >> *********** START SAMPLE ************** >> var tv = new qx.ui.treevirtual.TreeVirtual([ >> "Column 1", >> "Column 2" >> ]); >> tv.setWidth(400); >> tv.setHeight(300); >> tv.setSelectionMode(qx.ui.treevirtual.TreeVirtual.SelectionMode.SINGLE); >> tv.getDataModel().setColumnEditable(1, true); >> >> var dm = tv.getDataModel(); >> var root = dm.addBranch(null, "Root", true); >> for (var i=0; i<3; i++) >> { >> var b = dm.addBranch(root, "Branch_"+i, true); >> for (var j=0; j<3; j++) >> { >> var l = dm.addLeaf(b, "Leaf_"+i+"_"+j); >> dm.setColumnData(l, 1, "value_"+i+"_"+j); >> } >> } >> dm.setData(); >> this.getRoot().add(tv); >> ***************** END SAMPLE ************* >> >> In 0.7.3, setting the second column as editable was enough to trigger >> editing when the user selected the row, then double-clicked in the >> cell. In 0.8, no amount of clicking triggers editing. I plugged this >> sample code into a 0.7.3 skeleton just to be sure, and it does work. >> Is there more work required in 0.8, like listening for a cellClick and >> explicitly calling the startEditing() method? A quick attempt at that >> failed. I also tried cellrenderers other than the default treevirtual >> cellrenderer. I'm feeling wedged. >> >> This has only been tested against FireFox 2. Any advice would be >> appreciated. >> >> Thanks, >> Pat >> >> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> qooxdoo-devel mailing list >> qooxdoo-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel