question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Menu does not avoid intersecting keyboard on Android

See original GitHub issue

Current behaviour

When a Menu is created near the bottom of the app, while the keyboard is expanded, the Menu opens behind the keyboard.

Expected behaviour

I expect the menu to open upwards instead.

Code sample

I don’t have one that’s easy to run, unfortunately 😦

Screenshots (if applicable)

Screenshot_20210611-141306 Screenshot_20210611-141336

What have you tried

I looked at the documented props, and did not find any that controlled the direction that the Menu attempts to open in.

Your Environment

software version
ios or android Android 11
react-native 0.63.4
react-native-paper ^4.8.1
node N/A
npm or yarn yarn
expo sdk N/A

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lukewalczakcommented, Aug 22, 2022

I think there is a need to go through the Menu layout’s calculation and take into account the height of the keyboard when it is opened.

0reactions
bombillazocommented, Aug 19, 2022

Any solution to this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide Soft Keyboard When User Touches the Dropdown ...
1 Answer 1 · The soft keyboard still shows even after touching the drop-down menu. · You need to intercept an action on...
Read more >
Fix problems with Gboard - Android
If Gboard switches to another keyboard, you can switch it back. On your Android phone or tablet, open any app that you can...
Read more >
Menu resource
A menu resource defines an application menu (Options Menu, Context Menu, or submenu) that can be inflated with MenuInflater .
Read more >
Toolbar | Android Developers
An action menu . The menu of actions will pin to the end of the Toolbar offering a few frequent, important or typical...
Read more >
Debug your layout with Layout Inspector and ...
Changing a global setting may cause an activity restart. To avoid an activity restart, you can either change the settings in Android Studio...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found