Blank space when closing Android keyboard in landscape mode
Version
2.7.14
Reproduction link
Steps to reproduce
- Open page with vuejs project with any editable item (e.g. input) on mobile android device
- Rotate device into landscape mode
- Focus on any editable item (e.g. input)
- Type any symbol
- Rotate device to 180deg avoiding resize to portrait mode (flip it or rotate through the top side of device)
- Type any symbol
- Blur from editable item (e.g. input)
What is expected?
Keyboard close normaly
What is actually happening?
After keyboard is closed body tag will be malformed with blank space under it (blank space with keyboard height), but html tag will take 100% of device landscape height.
Environment: Device: OnePlus 3, OnePlus 7 Pro, OnePlus 7T Pro, OnePlus 8 Pro Android version: 9, 11, 12, 13 OS version: OxygenOS ^9.0.6 vuejs version: ^2.7.14, ^3.2.13
Additional:
This bug can be easily reproduced with default vue-cli project just adding input.
e.g.
<template>
<input type="text">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</template>
<script>
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'App',
components: {
HelloWorld
}
}
</script>
<style>
html {
background-color: aqua;
}
body {
background-color: #fff;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>