rem: p.length = w.attributes.length; w[prop2] = (oSplitter.orientation=='v')?'this.parent.getWidth(true)-8':'this.parent.getHeight(true)-8'; 
add: p.length = w.attributes._length; 
context: function SplitterOnOff_click(evt, w) {	var dir, padding;	var p = w.parent;	var oSplitter = p.parent;	var prop2 = (oSplitter.orientation=='v')?'left':'top';	var padding_offset = (oSplitter.orientation=='v')?0:2;	if ( p.length!=8 ) {		//collapse		padding = p.getPadding();		w.attributes.length = p.length;		w.attributes.padding = padding[padding_offset + 1];		dir = (oSplitter.orientation=='v')?'right':'down';		w.setImageURL('images/on_off_' + dir + '.gif');		p.length = 8;		padding[padding_offset + 1] = 0;		padding[padding_offset] += 8;		p.setPadding(padding);		w[prop2] = -padding[padding_offset];		oSplitter.redraw();	} else {		//expand		p.length = w.attributes.length;		w[prop2] = (oSplitter.orientation=='v')?'this.parent.getWidth(true)-8':'this.parent.getHeight(true)-8';		dir = (oSplitter.orientation=='v')?'left':'up';		w.setImageURL('images/on_off_' + dir + '.gif');		padding = p.getPadding();		padding[padding_offset + 1] = w.attributes.padding;		padding[padding_offset] -= 8;		p.setPadding(padding);		oSplitter.redraw();	}}
meta: 10647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10647/3fdd1726da85bb87f2b3f84deb0aabe9d6939b83/splitter.js/clean/porcupine/trunk/pubdir/__xul/splitter.js