From c468abe9d0cf40cbf9a0997120e9da28107d9fca Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 3 Sep 2019 12:47:00 -0400 Subject: [PATCH] =?UTF-8?q?FIX:=20Adjust=20composer=20size=20for=20iPhone?= =?UTF-8?q?=20Xs=20Max=20and=20X=CA=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/discourse/lib/safari-hacks.js.es6 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 index b063a8094a5..fa619da659d 100644 --- a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 +++ b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 @@ -41,6 +41,11 @@ function calcHeight() { withoutKeyboard = smallViewport ? 340 : 370; } + // iPhone Xs Max and iPhone Xʀ + if (window.screen.height === 896) { + withoutKeyboard = smallViewport ? 410 : 440; + } + // iPad can use innerHeight cause it renders nothing in the footer if (window.innerHeight > 920) { withoutKeyboard -= 45;