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

fix: re-align popup after width adjustment #28

Merged
merged 2 commits into from Aug 4, 2017
Merged

fix: re-align popup after width adjustment #28

merged 2 commits into from Aug 4, 2017

Conversation

cagen
Copy link
Contributor

@cagen cagen commented Aug 3, 2017

fix #27
Force re-align dropdown position after overlay's width is changed.

fix #27
Force re-align dropdown position after overlay's width is changed.
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 91.25% when pulling 81d5ce2 on cagen:hotfix/fix_align_position into f993dce on react-component:master.

@cagen
Copy link
Contributor Author

cagen commented Aug 3, 2017

Seems the rc-trigger forcePopupAlign can't work (https://github.com/react-component/trigger/blob/master/src/index.js#L432), where the this._component evals to undefined. I have to use the this.refs.trigger._component.alignInstance.forceAlign() to re-align.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.3%) to 93.75% when pulling c6309c5 on cagen:hotfix/fix_align_position into f993dce on react-component:master.

@afc163 afc163 merged commit 7a77719 into react-component:master Aug 4, 2017
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

Successfully merging this pull request may close these issues.

minOverlayWidthMatchTrigger为true时,dropdown定位不准确
3 participants