# Le clavier mobile masque l'éditeur en utilisant Microsoft Edge sur Android

**URL:** <https://meta.discourse.org/t/mobile-keyboard-hides-composer-using-microsoft-edge-on-android/228382>\
**Category:** Bug\
**Created:** [Mai 29, 2022, 3:17 UTC](https://meta.discourse.org/t/mobile-keyboard-hides-composer-using-microsoft-edge-on-android/228382 "2022-05-29T15:17:28Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [Septembre 25, 2022, 8:00 UTC](https://meta.discourse.org/t/mobile-keyboard-hides-composer-using-microsoft-edge-on-android/228382/23 "2022-09-25T20:00:08Z")

</div>

> [@nukeador](#):
>
> Quel est l’état de ce problème ?

La correction est prête et je prévois de la fusionner en début de semaine

> <https://github.com/discourse/discourse/pull/18298>
>
> Firefox has a bug where \*sometimes\* the visualViewport.height won't be
> updated w…hen the keyboard pops up until you scroll, making our composer
> stay hidden behind the keyboard. This commit uses both window.innerHeight and window.visualViewport.height using the minimum of both to check for height changes.
> 
> For Chrome/Edge we feature detect the new VirtualKeyboard API and
> opt-into it when the composer opens and use it to detect if a keyboard
> is being draw. Opting into the API changes how the viewport is
> calculated so we have to also change how the full height composer is
> calculated. To minimize breakage we opt-out when the composer component
> is destroyed.
> 
> This commit also moves the \`--composer-ipad-padding\` to only happen on
> iPads.
> 
> Bug report at https://meta.discourse.org/t/-/228382

> [@nukeador](#):
>
> Le problème est-il que Discourse est optimisé pour un bug de Chrome et qu’il plante sur tous les autres navigateurs ?

Nous ne prenons en charge que Chrome sur Android, mais le problème ici vient d’un bug dans l’implémentation par Firefox de l’API Visual Viewport, où il ne met pas à jour les valeurs lorsqu’un clavier apparaît à l’écran, ainsi que du manque de prise en charge de l’API Virtual Keyboard dans Firefox.

Même si Firefox Android présente ces bugs, manque d’API plus récentes et n’est pas un navigateur officiellement pris en charge, nous avons passé pas mal de temps sur le PR ci-dessus, qui devrait contourner ce problème.

---

_[View the full topic](https://meta.discourse.org/t/mobile-keyboard-hides-composer-using-microsoft-edge-on-android/228382)._
