Stefan Volbers wrote:
Hi Skar,

I wonder if your table instantiation is legal; you are providing three parameters to the constructor; tableModel is allright, but what about resizable_tcm? IMHO the api description allows two parameters (max.),
Thanks. I made a mistake there. I added the custom paneheader to the 2nd argument map like this:

//resizable table column model
      var resizable_tcm =
      {
        tableColumnModel : function(obj) {
          return new qx.ui.table.columnmodel.Resize(obj);
        },

        tablePaneHeader: function(obj) {
          return new testproject.CustomTablePaneHeader(obj);
        }
      };

      // table created
this.table = new qx.ui.table.Table(this.tableModel, resizable_tcm).set({

With this and the following custom table pane header given by Dave, it works fine in both build and source versions.

qx.Class.define("testproject.CustomTablePaneHeader",
{
  extend : qx.ui.table.pane.Header,

  construct : function(paneScroller) {
    arguments.callee.base.apply(this, arguments, paneScroller);
  },
members :
  {
    getContainerLocation: function(mode) {
      var domEl = this.getContainerElement().getDomElement();
      if (domEl) {
          return qx.bom.element.Location.get(domEl, mode);
      }
      else {
*domEl = this.getPaneScroller(0).getContainerElement().getDomElement();* *//domEl = this.__paneScroller.getContainerElement().getDomElement();*
          if (domEl) {
              var loc = qx.bom.element.Location.get(domEl, mode);
              return {
                  left: loc.left,
                  right: loc.right,
                  top: loc.top,
                  bottom: loc.top // not loc.bottom!
              };
          }
          else {
              return {
                  left: 0,
                  right: 0,
                  top: 0,
                  bottom: 0
              };
          }
      }
    }
  }
});
I changed the pane scroll access code as the __paneScroller vars aren't available in the build mode and so fails in the build version. Now it works in build version as well as source version too.

Can some one more knowledgeable confirm that this is the right approach?

cheers,
skar.

--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to