rem: function fixPanel( id, newSize ) { var textPos = w._getEl("ccw-"+id+"-count-pos").style; var phrase = w._getEl("ccw-"+id+"-phrase").style; 
add: function fixPanel( id, newDims ) { var prefix = "ccw-"+id; var countText = w._getEl(prefix+"-count-text").style; if ( newDims.size == 0 ) countText.display = "none"; else { countText.display = "block"; if ( o.axis == "Y" ) w._getEl(prefix+"-count-pos").style.top = (newDims.size/2) + o.units; else w._getEl(prefix+"-phrase").style.display = (newDims.size>o.scale) ? "inline" : "none"; } 
context: YAHOO.slashdot.ThresholdWidget.prototype._setTs = function( newTs, draggingBar ) {	var w = this;	var o = w.orient;	var offset = 0;	function fixPanel( id, newSize ) {		var textPos = w._getEl("ccw-"+id+"-count-pos").style;		var phrase = w._getEl("ccw-"+id+"-phrase").style;		textPos.display = (newSize>0) ? "block" : "none";		if ( o.axis == "Y" ) {		  textPos.top = (newSize/2) + o.units;		  phrase.display = "inline";		} else {		  textPos.top = "0";		  phrase.display = (newSize>o.scale) ? "inline" : "none";		}		var panel = w._getEl("ccw-"+id+"-panel").style;		panel[ o.posAttr ] = offset + o.units;		panel[ o.other.posAttr ] = 0;		panel[ o.sizeAttr ] = newSize + o.units;		panel[ o.other.sizeAttr ] = "100%";		offset += newSize;	}	if ( newTs === undefined )		newTs = this.displayedTs;	if ( draggingBar !== undefined ) {		var pin = draggingBar==ABBR_BAR ? Math.min : Math.max;		var other = 1-draggingBar;		newTs[other] = pin(newTs[draggingBar], this.preDragTs[other]);	}	this.displayedTs = newTs;	for ( i=ABBR_BAR; i<=HIDE_BAR; ++i )		if ( i != draggingBar )			this.dragBars[i].setPosFromT(newTs[i]);	var sizes = boundsToSizes(partitionedRange(this.displayRange, newTs), o.scale);	for ( var i=0; i<this.PANEL_KINDS.length; ++i )		fixPanel(this.PANEL_KINDS[i], sizes[i]);	this.setCounts(this._requestCounts());    	return newTs;}
meta: 3253	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3253/6344ca15230b05f59efd4290d07f180955f432e1/comments.js/buggy/themes/slashcode/htdocs/images/comments.js