rem: pos[0] += Number(YAHOO.util.Dom.getStyle(container, "right").replace("px", "")); pos[1] += Number(YAHOO.util.Dom.getStyle(container, "bottom").replace("px", "")); 
add: pos[0] += Number(YAHOO.util.Dom.getStyle(container, "right").replace(/[^0-9]/g, "")); pos[1] += Number(YAHOO.util.Dom.getStyle(container, "bottom").replace(/[^0-9]/g, "")); 
context: function autoCompleteAttach(element, url) {    // YUI's autocomplete data source expects to receive the url in pieces    // so split it up accordingly.    var path_and_params = url.split('?');    var path = path_and_params[0];    var params = path_and_params[1].split('&');    var ds = new YAHOO.widget.DS_XHR(path, ["\n", "\t"]);    ds.queryMatchContains = true;    ds.responseType = ds.TYPE_FLAT;    // Extract that param that has __VALUE__ in it and use that as    // the data source scriptQueryParam    new_params = [];    for (i = 0; i < params.length; i++) {        if (params[i].indexOf('__VALUE__') != -1) {	    tmp = params[i].split('=');	    ds.scriptQueryParam = tmp[0];	} else {	    new_params.push(params[i]);	}    }    ds.scriptQueryAppend = new_params.join('&');    var target = YAHOO.util.Dom.get(element);    var target_region = YAHOO.util.Dom.getRegion(target);    var target_width = target_region.right - target_region.left;    var shadow = document.createElement('div');    shadow.id = element + '_autoCompleteShadow';    target.parentNode.appendChild(shadow, target);    YAHOO.util.Dom.addClass(shadow, 'autoCompleteShadow');    var container = document.createElement('div');    container.id = element + '_autoCompleteContainer';    shadow.appendChild(container);    YAHOO.util.Dom.addClass(container, 'autoCompleteContainer');    // These are here for backwards compatibility to the CSS that we used in 2.1.  Unfortunately,    // it breaks drop shadows in the new version.  Remove these when GalleryTheme API gets to 3.x    YAHOO.util.Dom.setStyle(shadow, 'position', 'absolute');    YAHOO.util.Dom.setStyle(shadow, 'background', '#FFF');    YAHOO.util.Dom.setStyle(container, 'position', 'relative');    // Adjust for relative positioning of the container inside the shadow    var pos = [target_region.left, target_region.bottom];    pos[0] += Number(YAHOO.util.Dom.getStyle(container, "right").replace("px", ""));    pos[1] += Number(YAHOO.util.Dom.getStyle(container, "bottom").replace("px", ""));    YAHOO.util.Dom.setXY(shadow, pos);    YAHOO.util.Dom.setStyle(shadow, "width", target_width + "px");    oAutoComp = new YAHOO.widget.AutoComplete(element, element + '_autoCompleteContainer', ds);}
meta: 3727	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3727/1ec09b932faa8976c13e21eaf2ed589d72dea2de/AutoComplete.js/clean/gallery2/lib/javascript/AutoComplete.js