Monotone-Parent: c1039e97ecb95a8e1dd4a1ca25d457f206daeac3

Monotone-Revision: f4831aba087ab84c9ea8408610dcf9769966b8b8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-18T17:18:48
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-10-18 17:18:48 +00:00
parent 41b41137bc
commit 2bcbf95a3b
4 changed files with 26 additions and 8 deletions

View File

@@ -351,3 +351,21 @@ String.prototype.cssSafeString = function() {
return newString;
}
window.width = function() {
if (window.innerWidth)
return window.innerWidth;
else if (document.body && document.body.offsetWidth)
return document.body.offsetWidth;
else
return 0;
}
window.height = function() {
if (window.innerHeight)
return window.innerHeight;
else if (document.body && document.body.offsetHeight)
return document.body.offsetHeight;
else
return 0;
}