diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-20 11:49:03 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-20 11:49:03 -0400 |
commit | 239abd88e0113ae1d74eba423d72f32157f3854c (patch) | |
tree | 62bc2de2e07fb9c9b83d209a36ea47354d8b6aab /web/react/utils/utils.jsx | |
parent | 460a82878a93ef040d2c9a1221992ed7aa808d86 (diff) | |
parent | d3f99e821733b7c86ad297c136489678a2a9fffb (diff) | |
download | chat-239abd88e0113ae1d74eba423d72f32157f3854c.tar.gz chat-239abd88e0113ae1d74eba423d72f32157f3854c.tar.bz2 chat-239abd88e0113ae1d74eba423d72f32157f3854c.zip |
Merge pull request #1084 from apaatsio/handle-window-resize-properly
Handle window resize in React way
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index fb0690d66..5f266bba3 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -968,3 +968,11 @@ export function getShortenedTeamURL() { } return teamURL + '/'; } + +export function windowWidth() { + return $(window).width(); +} + +export function windowHeight() { + return $(window).height(); +} |