Skip to content

First click the button ,but the dropdown menu does not on right space 。 #2

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

Closed
chen236310 opened this issue Sep 28, 2016 · 4 comments
Milestone

Comments

@chen236310
Copy link

when I used navigator push to detail, I click the button ,it show that the was not on the right place ,but the after second click,it was right. I debug it ,it show that the first click I got this._buttonFrame was wrong.

@sohobloo
Copy link
Owner

sohobloo commented Sep 29, 2016

@chen236310 Thanks a lot. I'm working on it.

Here is a solution:
If you can get the reference of the dropdown component where you render your navigator, you can update the position in onDidFocus function of the navigator.

onDidFocus={() => {
    this._modalDropdown && this._modalDropdown.updatePosition();
}}

@sohobloo
Copy link
Owner

I'd like to find a way to update the position when the layout of the button / trigger related to the screen changed within the component code itself.
Anyone any suggestion are welcome!

@sohobloo
Copy link
Owner

sohobloo commented Oct 8, 2016

@chen236310
Good news. Try v0.3.0 and give me a feedback if your problem solved.

@sohobloo sohobloo closed this as completed Oct 8, 2016
@chen236310
Copy link
Author

Thank you for your advise,I think that can you get update the position twice within the component code itself .

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

2 participants