diff options
| -rw-r--r-- | client/js/controls/post_content_control.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/controls/post_content_control.js b/client/js/controls/post_content_control.js index b42c711..d8f1e51 100644 --- a/client/js/controls/post_content_control.js +++ b/client/js/controls/post_content_control.js @@ -108,7 +108,7 @@ class PostContentControl { // on mobile don't make the content node narrower than the screen, so that small images are centered // use browser width to accommodate Android's on-screen buttons in landscape mode if (window.innerWidth <= 800) { - width = Math.max(window.innerWidth, width); + width = Math.max(window.visualViewport.width, width); } this._postContentNode.style.width = width + "px"; this._postContentNode.style.height = height + "px"; |