aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-29 10:20:00 +0300
committerGravatar Vitaly Takmazov2016-07-29 10:20:00 +0300
commit8c5ac820e1623c517965f9cd9a762dec633ed27f (patch)
tree19b84f857e23354331d1b176a4bb44a095d44215 /juick-www
parent852d6ca2e2b5a61d672d0ef0ac9d3e766aced65e (diff)
www: fix showPhotoDialog
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/static/scripts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 8a9de0df..9198362f 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -395,8 +395,8 @@ function showMessageLinksDialog(mid, rid) {
}
function showPhotoDialog(fname) {
- var width = window.width,
- height = window.height * 0.9;
+ var width = window.innerWidth,
+ height = window.innerHeight * 0.9;
if (width < 640) {
return true;
} else if (width < 1280) {