rem: chc._applyPositionHorizontal(pos); 
add:    chc._applyPositionHorizontal(pos - chc.getMarginLeft()); 
context: proto._layoutInternalWidgetsHorizontal = function(){  switch(this.getOrientation())  {    case "horizontal":      var inner = this.getInnerWidth();            var sum = 0;            var ch = this.getChildren();      var chl = ch.length;      var chc;      var w;      var spacing = this.getSpacing();      var p = [];            for (var i=0; i<chl; i++)      {        chc = ch[i];                p.push(sum);                w = chc.getWidth();        if (w == "auto" || w == null) {          w = chc.isCreated() ? (chc.getPreferredWidth() || chc.getComputedBoxWidth() || 0) : 0;        };                w += chc.getMarginLeft() + chc.getMarginRight();        sum += w;                   if (i!=chl-1) {          sum += spacing;        };      };              var startpos = this.getPaddingLeft();            switch(this.getHorizontalBlockAlign())      {        case "center":          startpos += (inner - sum) / 2;          break;                  case "right":          startpos += inner - sum;          break;      };          for (var i=0; i<chl; i++) {        ch[i]._applyPositionHorizontal(startpos + p[i]);          };                 break;                            case "vertical":      var inner = this.getInnerWidth();            var ch = this.getChildren();      var chl = ch.length;      var chc;            var glob = this.getHorizontalChildrenAlign();      var cust, pos;            for (var i=0; i<chl; i++)      {        chc = ch[i];          cust = chc.getHorizontalAlign();        pos = this.getPaddingLeft();                switch(isValidString(cust) ? cust : glob)        {          case "right":            pos += inner-chc.getAnyWidth();            break;                      case "center":            pos += Math.floor((inner-chc.getAnyWidth())/2);            break;        };                chc._applyPositionHorizontal(pos);      };            break;   };    return true;};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/abfc7d4fe8f274ad2b4b9393a50824f2f7a3b65d/QxBox.js/buggy/qooxdoo/source/script/widgets/QxBox.js