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

TAG-4085 - tribe tooltip add position #100

Merged

Conversation

joaopgg
Copy link
Contributor

@joaopgg joaopgg commented Dec 12, 2017

Added to the tribe-tooltip, new type of positioning, passed by the position attribute
Now we allow, for top and bottom: left, right and middle
examples:
top left, top middle, top right

Note: it was only implemented for top and bottom

Copy link
Contributor

@Dexmaster Dexmaster left a comment

Choose a reason for hiding this comment

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

Would be really great if you can clean it up, thx.

});
}
else if (tribeTooltip.position === 'bottom')
if (positions[0] === 'top' || positions[0] === 'bottom')
Copy link
Contributor

Choose a reason for hiding this comment

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

Please replace positions[0] === 'top' with positions.indexOf('top') > -1 and other compatisons too...

Copy link
Contributor

Choose a reason for hiding this comment

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

We do not expect person to know in which order everything should be, also you can do same thing in strings (array is good too, just use indexOf)

@Dexmaster Dexmaster merged commit 4e4d801 into tomitribe:master Dec 13, 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.

None yet

2 participants