Vanessa 2 years ago
parent
commit
dd3c011736
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/src/mobile/util/keyboardToolbar.ts

+ 4 - 4
app/src/mobile/util/keyboardToolbar.ts

@@ -36,10 +36,10 @@ const renderKeyboardToolbar = () => {
             return;
         }
         hideKeyboardToolbarUtil();
-        // if (window.innerHeight + 200 > ((window.orientation === 90 || window.orientation === -90) ? screen.width : screen.height)) {
-        //     hideKeyboardToolbar();
-        //     return;
-        // }
+        if (window.innerHeight + 200 > ((window.orientation === 90 || window.orientation === -90) ? screen.width : screen.height)) {
+            hideKeyboardToolbar();
+            return;
+        }
 
         const dynamicElements = document.querySelectorAll("#keyboardToolbar .keyboard__dynamic");
         const range = getSelection().getRangeAt(0);