From 4b2af705a34346642d4246be1ddff4af5bb5fe3c Mon Sep 17 00:00:00 2001 From: Volker Mische Date: Sun, 28 Feb 2021 17:26:15 +0100 Subject: [PATCH] Put hidden input field at the top The input field was placed at the bottom, but that lead to some cutting of the top on mobile Chrome. Putting it at the top seems to work fine in both Chrome and Fennec. --- front/src/Phaser/Components/TextInput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Components/TextInput.ts b/front/src/Phaser/Components/TextInput.ts index 89e772bf..9dbe5d6c 100644 --- a/front/src/Phaser/Components/TextInput.ts +++ b/front/src/Phaser/Components/TextInput.ts @@ -22,7 +22,7 @@ export class TextInput extends Phaser.GameObjects.BitmapText { inputElement.maxLength = maxLength // Make sure that now scolling is needed and that the input field is // not visible - inputElement.setAttribute('style', 'opacity:0;position:absolute;bottom:0'); + inputElement.setAttribute('style', 'opacity:0;position:absolute;top:0'); mainContainer.appendChild(inputElement); inputElement.addEventListener('input', this.onInput.bind(this) as EventListener);