Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
6f3ab007
Commit
6f3ab007
authored
Mar 07, 2012
by
Julien Cigar
Browse files
Merge branch 'master' of
ssh://home.bebif.be/usr/local/repos/git/yeti
parents
416ea21c
25b74821
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
6f3ab007
...
...
@@ -428,6 +428,24 @@
}
}
/* Yeti.DOM.getWindowSize
* Returns the size of the browser window.
*/
Yeti
.
DOM
.
getWindowSize
=
function
()
{
return
typeof
(
window
.
innerHeight
==
'
number
'
)
?
{
height
:
window
.
innerHeight
,
width
:
window
.
innerWidth
}
:
document
.
body
&&
document
.
body
.
clientHeight
?
{
height
:
document
.
body
.
clientHeight
,
width
:
document
.
body
.
clientWidth
}
:
document
.
documentElement
&&
document
.
documentElement
.
clientHeight
?
{
height
:
document
.
documentElement
.
clientHeight
,
width
:
document
.
documentElement
.
clientWidth
}
:
undefined
;
}
/***********************************************************************
Tools
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment