context: proto._layoutVertical = function(vWidget){  var vHint = vWidget.getLayoutHint();    var vRow = vHint.row-1;  var vCol = vHint.col-1;    var vRowSpan = vHint.rowspan;    var vColCount = this.getColCount();    var vTop = this.getPaddingTop();  var vHeight = 0;  /* ------------------------------     Calculate Position & Size  ------------------------------ */    for (var i=0; i<vRow; i++) {    vTop += this._computedRowHeights[i];  };    for (var j=0; j<vRowSpan; j++) {    vHeight += this._computedRowHeights[i+j];  };    var vAvailableHeight = vHeight - vHint.paddingTop - vHint.paddingBottom;    /* ------------------------------     Apply clip  ------------------------------ */    var vClip = vWidget.getClip();  if (vClip)  {    vClip[2] = vAvailableHeight;    vWidget.forceClip(null);    vWidget.setClip(vClip);  }  else  {    vWidget.setClip([0, 0, vAvailableHeight, 0])    };    /* ------------------------------     Virtual Cell Support  ------------------------------ */    if (this.getShowVirtualCells())  {    var vCell = this._virtualCells[(vRow*vColCount) + vCol];    var vCellStyle = vCell.style;        vCellStyle.position = "absolute";    vCellStyle.border = "1px solid #4D79FF";    vCellStyle.top = vTop + "px";    vCellStyle.height = vHeight + "px";    vCellStyle.zIndex = "-1";        if (!vCellStyle.parentNode) {      this.getElement().appendChild(vCell);    };  };    /* ------------------------------     Alignment support  ------------------------------ */  switch(vWidget.getVerticalAlign())  {    case "middle":      vTop += Math.max((vAvailableHeight - vWidget.getAnyHeight()) / 2, 0);      break;          case "bottom":      vTop += Math.max(vAvailableHeight - vWidget.getAnyHeight(), 0);      break;  };      /* ------------------------------     Apply position  ------------------------------ */  vWidget._applyPositionVertical(vTop + vHint.paddingTop);        /* ------------------------------     Apply size  ------------------------------ */      if (vHint.scaleVertical) {    vWidget._applySizeVertical(vAvailableHeight);      };    };
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/b0632cbfc0cf47adc1044060cca5f433000c004d/QxGridLayout.js/buggy/qooxdoo/source/script/widgets/QxGridLayout.js