mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user