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

Fixing Picker suggestions RTL alignment #3795

Merged
merged 3 commits into from
Jan 24, 2018

Conversation

kristoferbrown
Copy link
Contributor

Pull request checklist

Description of changes

Just setting directionalHint based on getRTL wasn't working, so this PR sets directionalHint and directionalHintForRTL to put the suggestions in the right spot.

@@ -230,7 +230,8 @@ export class BasePicker<T, P extends IBasePickerProps<T>> extends BaseComponent<
gapSpace={ 5 }
target={ this.input.inputElement }
onDismiss={ this.dismissSuggestions }
directionalHint={ getRTL() ? DirectionalHint.bottomRightEdge : DirectionalHint.bottomLeftEdge }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the getRTL import.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch. It's removed now.

Copy link
Contributor

@joschect joschect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one request.

@kristoferbrown kristoferbrown merged commit 3b5b375 into microsoft:master Jan 24, 2018
chrismohr pushed a commit to chrismohr/office-ui-fabric-react that referenced this pull request Apr 17, 2018
* Making picker suggestions callout align to correct rtl position

* rush change

* Removing getRTL import
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picker - PeoplePicker: Right to Left Support
2 participants