Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Add right-to-left support to hopscotch #133

Merged
merged 7 commits into from
Dec 2, 2014

Conversation

shaneafsar
Copy link

This provides a configuration option to tours and individual callouts to "flip" the positioning of callouts . Callouts positioned on the top and bottom are shifted to their right-to-left position equivalent, and anything oriented "left" is switched to "right" and vice-versa. xOffset is respected. Instantiators must simply set the 'isRtl" flag to true when they are expecting to view the callout in a RTL language context.

Two util functions were created to handle the placement/orientation legacy handling, and the right-to-left switch. Additionally, the render and setPosition methods were updated to support the parameter.

@kate2753
Copy link
Contributor

Looks good to me. Thanks for the updates!

@kate2753 kate2753 added this to the 0.2.3 milestone Dec 2, 2014
timlindvall added a commit that referenced this pull request Dec 2, 2014
Add right-to-left support to hopscotch
@timlindvall timlindvall merged commit 85c645e into LinkedInAttic:master Dec 2, 2014
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.

3 participants