Skip to content

Commit 5362c5f

Browse files
authored
Fixed Hint position on RTL (#2541)
1 parent 99fa7a7 commit 5362c5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/hint/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@ class Hint extends Component<HintProps, HintState> {
533533
const layout = {
534534
...this.getContainerPosition(),
535535
width: this.targetLayout?.width,
536-
height: this.targetLayout?.height
536+
height: this.targetLayout?.height,
537+
right: Constants.isRTL ? this.targetLayout?.x : undefined,
538+
left: Constants.isRTL ? undefined : this.targetLayout?.x
537539
};
538540

539541
return (

0 commit comments

Comments
 (0)