summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-10-20 11:49:03 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-10-20 11:49:03 -0400
commit239abd88e0113ae1d74eba423d72f32157f3854c (patch)
tree62bc2de2e07fb9c9b83d209a36ea47354d8b6aab /web/react/utils
parent460a82878a93ef040d2c9a1221992ed7aa808d86 (diff)
parentd3f99e821733b7c86ad297c136489678a2a9fffb (diff)
downloadchat-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')
-rw-r--r--web/react/utils/utils.jsx8
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();
+}