rem: var tl = getAbsolutePos(popupDivStack[istack]); 
add:    var tl = findMaxExtent(document,0);   
context: function sizeFrameAfterAjax(el) {		    var frame = getFrame(placementid);		    		    if ( frame != null ) {		                    var height;                var objToResize = (frame.style) ? frame.style : frame;                var scrollH = document.body.scrollHeight;                var offsetH = document.body.offsetHeight;                var clientH = document.body.clientHeight;                var innerDocScrollH = null;                if (typeof(frame.contentDocument) != 'undefined' || typeof(frame.contentWindow) != 'undefined')                {                        // very special way to get the height from IE on Windows!                        // note that the above special way of testing for undefined variables is necessary for older browsers                        // (IE 5.5 Mac) to not choke on the undefined variables.                        var innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;                        innerDocScrollH = (innerDoc != null) ? innerDoc.body.scrollHeight : null;                }//              alert("After innerDocScrollH");                if (document.all && innerDocScrollH != null)                {                        // IE on Windows only                        height = innerDocScrollH;                }                else                {                        // every other browser!                        height = offsetH;                }                var tl = getAbsolutePos(popupDivStack[istack]);                var sh = el.scrollHeight;                var oh = el.offsetHeight;                var ch = el.clientHeight;                var bottom = tl.y + sh;                 // here we fudge to get a little bigger                var newHeight = mmax(mmax(mmax(mmax(height,scrollH),clientH),innerDocScrollH),bottom) + 50;                // no need to be smaller than...                //if (height < 200) height = 200;                objToResize.height=newHeight + "px";		                    var s = " scrollH: " + scrollH + " offsetH: " + offsetH + " clientH: " +                 clientH + " innerDocScrollH: " + innerDocScrollH + " Read height: " + height + " bottom "+ bottom+                " sh "+ sh +                " oh "+oh+                " ch "+ch+                " Set height to: " + newHeight;//              window.status = s;              //alert(s);		     }}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/807efff974b6e481aa6ef7e8699b8d3a68a1de63/stateswitcher.js/clean/rwiki/rwiki-tool/tool/src/webapp/scripts/stateswitcher.js