witten
/
luminotes
Archived
1
0
Fork 0

Expanded workaround for IE iframe positioning bug to include IE 7 and not just 6.

This commit is contained in:
Dan Helfman 2008-05-18 01:43:20 -07:00
parent e102438957
commit 8389eae2e5
1 changed files with 2 additions and 3 deletions

View File

@ -2255,9 +2255,8 @@ function calculate_position( anchor, relative_to ) {
position.y += relative_pos.y;
// Work around an IE "feature" in which an element within an iframe changes its absolute
// position based on how far the page is scrolled. The if is necessary to prevent this
// workaround from screwing positions up in sane browsers like Firefox.
if ( getStyle( "content", "position" ) == "absolute" )
// position based on how far the page is scrolled.
if ( /MSIE/.test( navigator.userAgent ) )
position.y -= getElement( "html" ).scrollTop;
}