Skip to content

Commit

Permalink
Fixing Picker suggestions RTL alignment (microsoft#3795)
Browse files Browse the repository at this point in the history
* Making picker suggestions callout align to correct rtl position

* rush change

* Removing getRTL import
  • Loading branch information
kristoferbrown authored and Chris Mohr committed Apr 17, 2018
1 parent 6a0c0b2 commit ff69648
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Pickers: Aligning suggestions callout to the correct RTL position",
"type": "patch"
}
],
"packageName": "office-ui-fabric-react",
"email": "v-krbrow@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import {
BaseComponent,
KeyCodes,
autobind,
css,
getRTL
css
} from '../../Utilities';
import { FocusZone, FocusZoneDirection } from '../../FocusZone';
import { Callout, DirectionalHint } from '../../Callout';
Expand Down Expand Up @@ -233,7 +232,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 }
directionalHint={ DirectionalHint.bottomLeftEdge }
directionalHintForRTL={ DirectionalHint.bottomRightEdge }
>
<TypedSuggestion
onRenderSuggestion={ this.props.onRenderSuggestionsItem }
Expand Down

0 comments on commit ff69648

Please sign in to comment.