version 1.8, 2007/09/11 15:40:30
|
version 1.9, 2008/01/17 17:57:58
|
Line 610 function getWinSize() {
|
Line 610 function getWinSize() {
|
if (defined(self.innerHeight)) { |
if (defined(self.innerHeight)) { |
// all except Explorer |
// all except Explorer |
if ((self.innerWidth == 0)||(self.innerHeight == 0)) { |
if ((self.innerWidth == 0)||(self.innerHeight == 0)) { |
// Safari 1.2 bug |
// Safari 1.2 (and other) bug |
if (parent) { |
if (parent) { |
parent.innerHeight; |
wsize.height = parent.innerHeight; |
parent.innerWidth; |
wsize.width = parent.innerWidth; |
} |
|
} |
} |
|
} else { |
wsize.width = self.innerWidth; |
wsize.width = self.innerWidth; |
wsize.height = self.innerHeight; |
wsize.height = self.innerHeight; |
|
} |
} else if (document.documentElement && document.documentElement.clientHeight) { |
} else if (document.documentElement && document.documentElement.clientHeight) { |
// Explorer 6 Strict Mode |
// Explorer 6 Strict Mode |
wsize.width = document.documentElement.clientWidth; |
wsize.width = document.documentElement.clientWidth; |