# Text input doesn't open in full height with virtual keyboard on Android

**URL:** <https://forums.unrealengine.com/t/text-input-doesnt-open-in-full-height-with-virtual-keyboard-on-android/1219267>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Android, Widget\
**Created:** [July 4, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/text-input-doesnt-open-in-full-height-with-virtual-keyboard-on-android/1219267 "2023-07-04T15:04:27Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Paratus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Paratus](https://forums.unrealengine.com/u/Paratus)\
**Post date:** [July 12, 2023, 9:26pm UTC](https://forums.unrealengine.com/t/text-input-doesnt-open-in-full-height-with-virtual-keyboard-on-android/1219267/7 "2023-07-12T21:26:34Z")

</div>

To fix this in portrait, modify the file  
`Engine\Build\Android\Java\src\com\epicgames\unreal\GameActivity.java.template`

Find the line that looks like this:  
`int bottomDiff = Math.abs( mainDecorViewRect.bottom - visibleRect.bottom );`

Add the following code below it:

```java
// BEGIN Paratus mod
visibleRect.bottom -= visibleRect.top;
// END Paratus mod
```

---

_[View the full topic](https://forums.unrealengine.com/t/text-input-doesnt-open-in-full-height-with-virtual-keyboard-on-android/1219267)._
