rem: return accumulatedHeight + maxSingleRequiredHeight; 
add: return Math.max(0, accumulatedHeight + maxSingleRequiredHeight); 
context: proto._calculateChildrenDependHeight = function(vModifiedWidget, vHint) {  var ch = this.getChildren();  var chl = ch.length;  var chc;    var accumulatedHeight = 0;  var maxSingleRequiredHeight = 0;  var respectAutoRequirements = this.getRespectAutoRequirements();    var tempSize;    for (var i=0; i<chl; i++)   {    chc = ch[i];    cht = chc.getLayoutHint();        switch(cht)    {      case "top":      case "bottom":        tempSize = chc.getAnyHeight();        tempSize = isValidNumber(tempSize) ? tempSize : 0;                accumulatedHeight += Math.min(Math.max(tempSize, chc.getMinHeight()), chc.getMaxHeight());        break;      case "auto":                if (!respectAutoRequirements) {          break;        };                      case "left":      case "right":        tempSize = chc.getAnyHeight();        tempSize = isValidNumber(tempSize) ? tempSize : 0;              maxSingleRequiredHeight = Math.max(Math.min(Math.max(chc.getMinHeight(), tempSize), chc.getMaxHeight()), maxSingleRequiredHeight);        break;              default:        throw new Error("QxDockLayout does not support layout hint '" + cht + "' for child " + chc);    };  };        return accumulatedHeight + maxSingleRequiredHeight;};
meta: 1005	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1005/48c844c19ae85ddd1dfe36117c251acaf1ddad3a/QxDockLayout.js/buggy/qooxdoo/source/script/widgets/QxDockLayout.js