The discussion revolves around a UI issue on iOS where the Discourse editor’s height causes the “Reply” button to be obscured when predictive text is enabled, particularly on iPhone 7 and iPhone 8 Plus devices running iOS 11. ChrisBeach first reports the problem, noting it’s related to the predictive text feature. Sam investigates and identifies a complex bug involving two different inner heights depending on whether the keyboard’s bottom bar is visible. He acknowledges the randomness and difficulty of the issue. ChrisBeach suggests a potential solution of moving the reply and upload buttons to the top, but Sam explains that fixed positioning breaks during text entry. Sam shares a workaround involving adjusting for the address bar’s size (which shrinks when the keyboard appears) and commits a fix. The fix is tested and confirmed to improve the situation, though a small gap remains when predictive text is disabled. Codinghorror emphasizes that the default state is predictive text on, and the goal is good enough, not perfection. The fix is eventually deployed to Meta after a brief deployment delay.
Not sure if it’s related to the upgrade but the notorious iPhone discourse editor height issue is back when “Predictive” is enabled (and I believe the iOS default is Predictive enabled):
GRRR bingo … found the bug … this is such a nightmare… there are 2 inner heights I need to work with … one when the bottom < > etc is showing … and one when it is not…
Yikes. I don’t envy you guys here. It’s a really complex problem to solve.
I wonder if the best solution is a radical one. Move the Reply and Upload buttons to the top (position them absolutely so they’re not affected by scrolling). Then make the text box big - if it flows offscreen, this won’t be an issue provided we can keep the user’s cursor in view at all times.
I am not sure anything exists but I would be proved wrong, it would make me super happy
In the meantime I just committed an amendment to that hack that accounts for “shrunk vs non-shrunk” address bar. It makes me feel quite bad about myself, but hey it works provided you are using a default keyboard and have predictive text on.
notice how 10.0.0.55 is big in the top picture and smaller in the second one. When it is big … you also happen to have a footer on the page that eats up visible space for nav, so we just plug in numbers and for peace on