FF3.0b1 has a bug with testing innerWidth/innerHeight of frames. This will be fixed in later versions, but none are released yet.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5447 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-17 01:19:57 +00:00
parent bacdad9e30
commit 430906ff22

View File

@@ -899,7 +899,9 @@ Test.AnotherWay._test_page_onload=function()
}
}else { // otherwise (not IE) it ought to work like this
for( var i in Test.AnotherWay._g_test_iframe) {
if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) {
// Hack to prevent failure in FF3.0b1
if (i == "innerWidth" || i == "innerHeight") { continue; }
if( typeof( Test.AnotherWay._g_test_iframe[i] )=='function' ) {
if( i.substring( 0, 4 )=="test" ) {
test_page.test_objects.push( new Test.AnotherWay._test_object_t( i ) );
}