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

Update tooltip.js positionTooltip #65

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

Drumstix42
Copy link

Description
This is a "simple" fix to address an issue I noticed with tooltip/popover positioning for "auto" placement. This also fixes the arrow to show up on the correct side, as it's based on the class applied to the popover for example.

Not sure if there is a cleaner way to do this, but this seems to work well.

Changes

  • update positionTooltip fn to apply the proper class to tooltips/popovers when using "auto" placement determination
  • now if a popover with "auto right" ends up being calculated to the left, the popover will receive the correct left class, and not right.

- update `positionTooltip` fn to apply the proper class to tooltips/popovers when using "auto" placement determination
- now if a popover with "auto right" ends up being calculated to the left, the popover will receive the correct `left` class, and not `right`
@Morgul Morgul merged commit c529b34 into Morgul:master Nov 18, 2020
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.

2 participants