Derrell Lipman wrote: > > On Sun, Oct 11, 2009 at 05:47, panyasan <[email protected]> wrote: > >> >> I tried "tree.setHeaderCellHeight(0);", but the header is still showing. >> >> Try this in the playground (trunk): >> >> var tree = new qx.ui.treevirtual.TreeVirtual( ["blah"] ); >> tree.setHeaderCellHeight(0); >> this.getRoot().add(tree); >> >> Header still there. >> > > Please apply the following patch to trunk, and then try your same code. > > Derrell > > TERM: Undefined variable. > diff --git a/qooxdoo/framework/source/class/qx/ui/table/Table.js > b/qooxdoo/framework/source/class/qx/ui/table/Table.js > index 9bedcb0..a5b7bd2 100644 > --- a/qooxdoo/framework/source/class/qx/ui/table/Table.js > +++ b/qooxdoo/framework/source/class/qx/ui/table/Table.js > @@ -387,7 +387,7 @@ qx.Class.define("qx.ui.table.Table", > }, > > > - /** The height of the header cells. */ > + /** The height of the header cells. Set to 0 to hide the header. */ > headerCellHeight : > { > check : "Integer", > @@ -731,8 +731,22 @@ qx.Class.define("qx.ui.table.Table", > { > var scrollerArr = this._getPaneScrollerArr(); > > - for (var i=0; i<scrollerArr.length; i++) { > - scrollerArr[i].getHeader().setHeight(value); > + for (var i=0; i<scrollerArr.length; i++) > + { > + var header = scrollerArr[i].getHeader(); > + > + // Do they want the header to be hidden? > + if (value == 0) > + { > + // Yup. Hide it. > + header.setVisibility("excluded"); > + } > + else > + { > + // Make the header visible and set its height. > + header.setVisibility("visible"); > + header.setHeight(value); > + } > } > }, > >
Derrell, thanks for the patch, but I think we're not quite there ;-) http://n2.nabble.com/file/n3824097/Bild%2B1.png -- View this message in context: http://n2.nabble.com/Hide-header-row-in-TreeVirtual-tp2662225p3824097.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
