rem: cht = chc.getLayoutHint() 
add: cht = chc.getLayoutHint(); 
context: proto._layoutInternalWidgetsHorizontal = function(){  var innerWidth = this.getInnerWidth();  if (innerWidth == 0) {    return;  };    var ch = this.getChildren();  var chl = ch.length;  var chc, cht;    var grouped = {    left : [],    right : [],    orthogonal : [],    auto : []  };    for (var i=0; i<chl; i++)   {    chc = ch[i];    cht = chc.getLayoutHint()        switch(cht)    {      case "left":      case "right":      case "auto":        grouped[cht].push(chc);        break;              case "top":      case "bottom":        grouped["orthogonal"].push(chc);        break;              default:        throw new Error("QxDockLayout does not support layout hint '" + cht + "' for child " + chc);    };  };  if (grouped.auto.length > 1) {    throw new Error("QxDockLayout can not handle multiple auto children!");  };      /*  -----------------------    LEFT  -----------------------  */  var leftList = grouped.left;  var leftLength = leftList.length;  var leftLast = 0;      for (var i=0; i<leftLength; i++)  {    chc = leftList[i];        chc._applyPositionHorizontal(leftLast);    leftLast += this._prepareSizeValue(chc.getAnyWidth(), innerWidth, chc.getMinWidth(), chc.getMaxWidth());  };        /*  -----------------------    RIGHT  -----------------------  */  var rightList = grouped.right;  var rightLength = rightList.length;  var rightLast = innerWidth;    for (var i=0; i<rightLength; i++)  {    chc = rightList[i];        rightLast -= this._prepareSizeValue(chc.getAnyWidth(), innerWidth, chc.getMinWidth(), chc.getMaxWidth());    chc._applyPositionHorizontal(rightLast);  };        /*  -----------------------    ORTHOGONAL  -----------------------  */  var orthogonalList = grouped.orthogonal;  var orthogonalLength = orthogonalList.length;    for (var i=0; i<orthogonalLength; i++)  {    chc = orthogonalList[i];        chc._applyPositionHorizontal(0);    chc._applySizeHorizontal(innerWidth);      };        /*  -----------------------    AUTO  -----------------------  */    var autoList = grouped.auto;  var autoLength = autoList.length;  var autoItem = autoList[0];  var autoSpace = Math.max(0, rightLast - leftLast);    if (autoItem)  {    autoItem._applyPositionHorizontal(leftLast);    autoItem._applySizeHorizontal(autoSpace);  };};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/bc20bc5368505d7f5587054ea00bd3cc7c350e5d/QxDockLayout.js/buggy/qooxdoo/source/script/widgets/QxDockLayout.js