I have been migrating from 0.8.3 to 1.0.1. Most things went OK, although I
had a brief run-in with some artifacts I referred to as "luminous squids".
Amusing for a bit, but they're gone now :-)

In 0.8.3 the following table appeared as desired, having a simple line
border around the table, no column labels, and no horizontal scroll bar.
After conversion, the table now displays a block for the column label, and
the horizontal scroll bar, even though none of the elements is anywhere near
the table width. The following code used to hack around a problem with
setting the HeaderCellHeight, and also gets rid of the horizontal scrollbar
(or used to), but appears to have broken in 1.0.1.

Does anyone see any obvious problems? I'm not getting any deprecation
warnings in the app, but need to get the 0.8.3 behavior back if we're going
to be able to migrate to 1.0.x.
Thanks,
Ken

      var dm = new qx.ui.table.model.Simple();
      dm.setColumns([""]);
      dm.setEditable(false);
      dm.setColumnSortable(0, false);
      this.menuItemTable = new qx.ui.table.Table(dm);
      this.menuItemTable.getContainerElement().setAttribute("id",

"top_recipe_list");
      this.menuItemTable.set({ height: 260,
                               minHeight: 100,
                               width: 278,
                               columnVisibilityButtonVisible: false,
                               statusBarVisible: false,
                               showCellFocusIndicator: false,
                               tabIndex: 5
                            });
      this.menuItemTable.setColumnWidth(0,284);
      this.menuItemTable.getSelectionModel().addListener("changeSelection",
                                  this.menuItemTableChangeSelection, this);

      this.menuItemTable.addListener("cellDblclick",
this.menuItemTableDblClick, this);

      // make it look like a list box.
      // this should hide the header, but it doesn't.
      // this.menuItemTable.set({headerCellHeight: 0});
      // this doesn't work, too (in qooxdoo 1.0.1)
      // this.menuItemTable.setHeaderCellHeight(1);
      // so the following hacks around that. Also hides the horizontal
      // scrollbar.
      var scrollerArr = this.menuItemTable._getPaneScrollerArr();
      for (var idx = 0, ln = scrollerArr.length; idx < ln; idx++) {
          header = scrollerArr[idx].getHeader();
          clipper = header.getLayoutParent();
          clipper.setHeight(0);

          hscroll = scrollerArr[idx].getChildControl("scrollbar-x");
          hscroll.setHeight(0);
      }
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to