rem: /* --------------------------------------- Recalculate dimensions (if needed) --------------------------------------- */ var innerWidth = this.getInnerWidth();  if (vHint == "inner-width") { this._normalizeHorizontalData(innerWidth); 
add: if (!this._layoutHorizontalInitialDone) { vHint = "initial"; 
context: proto._layoutInternalWidgetsHorizontal = function(vHint){  /* ---------------------------------------     Recalculate dimensions (if needed)  --------------------------------------- */  var innerWidth = this.getInnerWidth();  if (vHint == "inner-width") {      this._normalizeHorizontalData(innerWidth);  };        /* ---------------------------------------     Prepare variables  --------------------------------------- */  var vConstraintMode = this.getConstraintMode();  var vUseVirtualCells = isValid(this._virtualCells);    var vRowCount = this.getRowCount();  var vColCount = this.getColCount();    var vPaddingLeft = this.getPaddingLeft();  var vCurrentLeft = vPaddingLeft;  var vChildren = this.getChildren();  var vChildrenLength = vChildren.length;  var vCurrentChild, vCurrentLayoutHint, vVirtualCell, vClip, vClipSize, vColWidth, vColSpanWidth;    for (var i=0; i<vRowCount; i++)  {    for (var j=0; j<vColCount; j++)    {      vColWidth = this._normalizedColWidths[j];            for (var k=0; k<vChildrenLength; k++)      {        vCurrentChild = vChildren[k];        vCurrentLayoutHint = vCurrentChild.getLayoutHint();                if (vCurrentLayoutHint.row == (i+1) && vCurrentLayoutHint.col == (j+1))         {          vColSpanWidth = vColWidth;          if (isValidNumber(vCurrentLayoutHint.colspan) && vCurrentLayoutHint.colspan > 1)          {            for (var l=1; l<vCurrentLayoutHint.colspan; l++) {              vColSpanWidth += this._normalizedColWidths[j+l]            };                         };                    vCurrentChild._applyPositionHorizontal(vCurrentLeft);                    switch(vConstraintMode)          {            case "max":              vCurrentChild.setMaxWidth(vColSpanWidth);              vCurrentChild.setClip(null);              break;                          case "clip":              vClip = vCurrentChild.getClip();              vClipSize = Math.min(vCurrentChild.getAnyWidth(), vColSpanWidth);              if (isValidArray(vClip))              {                vClip[1] = vClipSize;                vCurrentChild.forceClip(null);                vCurrentChild.setClip(vClip);              }              else              {                vCurrentChild.setClip([0, vClipSize, 0, 0]);              };                            vCurrentChild.setMaxWidth(Infinity);              break;                          default:              vCurrentChild.setMaxWidth(Infinity);              vCurrentChild.setClip(null);          };                    if (vUseVirtualCells)          {            vVirtualCell = this._virtualCells[i*vColCount+j];                       vVirtualCell.style.left = vCurrentLeft + "px";            vVirtualCell.style.width = vColSpanWidth + "px";                        vVirtualCell.style.borderLeft = j == 0 ? "1px solid white" : "0 none";          };        };      };            vCurrentLeft += vColWidth;    };      vCurrentLeft = vPaddingLeft;  };};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/856d1a5c1a6fa74423b05da4d6984904b653f505/QxGridLayout.js/buggy/qooxdoo/source/script/widgets/QxGridLayout.js