Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu is going out of view #51

Closed
mddanishansari opened this issue Dec 19, 2018 · 5 comments
Closed

Menu is going out of view #51

mddanishansari opened this issue Dec 19, 2018 · 5 comments

Comments

@mddanishansari
Copy link

This is my normal menu
screenshot_1545202009

But if I open when menu button is below, the menu goes out of the view
screenshot_1545201988

I have seen in preview that the menu can be anchored. Does it happens automatically? or we have to do it manually? If we have to do it manually there is nothing mentioned in the DOCS.

Thank you

@mxck
Copy link
Owner

mxck commented Jan 14, 2019

@mddanishansari can you show code example at snack?

@chohonest
Copy link

chohonest commented Jan 21, 2019

I am facing the same issue posting your example code and when I tap show menu it keeps opening at the bottom right of the screen. How do I give it a fix position?
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Menu ref={this.setMenuRef} button={<Ionicons name="md-more" onPress={() => this.showMenu()} style={{ fontSize: 27 }} />} > <MenuItem onPress={this.hideMenu}>{Follow ${item.first_name}}</MenuItem> <MenuItem onPress={this.hideMenu}>Add to Calendar</MenuItem> <MenuItem onPress={this.hideMenu}> Message </MenuItem> <MenuDivider /> <MenuItem onPress={this.hideMenu}>Report...</MenuItem> </Menu> </View>

@AarshOza
Copy link

AarshOza commented May 1, 2019

Any luck finding the solution !

@mxck
Copy link
Owner

mxck commented May 26, 2019

@mddanishansari @chohonest does the bug still exist in the last react-native? I just tested on virtual device and I can't catch this bug.
So if bug exists I will reopen this issue.

@mxck mxck closed this as completed May 26, 2019
@mxck
Copy link
Owner

mxck commented May 26, 2019

Seems this RN bug facebook/react-native#14887

mxck added a commit that referenced this issue May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants