rem: var sum = 0;  var ch = this.getChildren(); var chl = ch.length; var chc; var w; var p = [];  for (var i=0; i<chl; i++) { chc = ch[i];  p.push(sum);  w = chc.getWidth();  if (w == "auto" || w == null) { if (chc.isCreated()) { w = chc.getPreferredWidth() || chc.getComputedBoxWidth() || 0; } else { w = 0; }; };  w += chc.getMarginLeft() + chc.getMarginRight(); sum += w; };  var startpos = 0;  switch(this.getHorizontalBlockAlign()) { case "center": startpos = (inner - sum) / 2; break;  case "right": startpos = inner - sum; break; };  for (var i=0; i<chl; i++) { chc = ch[i]; chc._applyPositionHorizontal(startpos + p[i]); }; 
add: return true; 
context: proto._layoutInternalWidgetsHorizontal = function(){  var inner = this.getInnerWidth();    var sum = 0;    var ch = this.getChildren();  var chl = ch.length;  var chc;  var w;  var p = [];    for (var i=0; i<chl; i++)  {    chc = ch[i];        p.push(sum);        w = chc.getWidth();        if (w == "auto" || w == null)    {      if (chc.isCreated())      {        w = chc.getPreferredWidth() || chc.getComputedBoxWidth() || 0;      }      else      {        w = 0;      };    };        w += chc.getMarginLeft() + chc.getMarginRight();    sum += w;     };      var startpos = 0;    switch(this.getHorizontalBlockAlign())  {    case "center":      startpos = (inner - sum) / 2;      break;          case "right":      startpos = inner - sum;      break;  };  for (var i=0; i<chl; i++)  {    chc = ch[i];    chc._applyPositionHorizontal(startpos + p[i]);      }; };
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/9df15e245242d4459594a71adb8175ee970898e3/QxBox.js/buggy/qooxdoo/source/script/widgets/QxBox.js