aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorHunternif2019-04-13 03:42:11 +0700
committerHunternif2019-04-13 03:42:11 +0700
commit2959c0a973c8439bf239aa9869b145be1173b3dc (patch)
treee8ecb272a7467abc35162bdcf34b21e1433f8e31 /client
parent18e3ade5f2b54a1519b6d6db23f01d99392fbf48 (diff)
Fix pose image size on Android in landscape mode
Diffstat (limited to 'client')
-rw-r--r--client/js/controls/post_content_control.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/js/controls/post_content_control.js b/client/js/controls/post_content_control.js
index aeb75ab..e445c75 100644
--- a/client/js/controls/post_content_control.js
+++ b/client/js/controls/post_content_control.js
@@ -105,7 +105,8 @@ class PostContentControl {
_resizePostContainer(width, height) {
// on mobile don't make the image narrower than the screen, so that small images are centered
if (screen.width < 1000) {
- width = Math.max(screen.width, width);
+ // use browser width to accommodate Android's on-screen buttons in landscape mode
+ width = Math.max(window.innerWidth, width);
}
this._postContentNode.style.width = width + 'px';
this._postContentNode.style.height = height + 'px';

© 2015 - 2026 Jakob L. Kreuze