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

Tooltip positions are not behaving as expected #4877

Closed
thislooksfun opened this issue Mar 5, 2020 · 1 comment · Fixed by #4880
Closed

Tooltip positions are not behaving as expected #4877

thislooksfun opened this issue Mar 5, 2020 · 1 comment · Fixed by #4880

Comments

@thislooksfun
Copy link

Describe the bug

The tooltips generated via the v-b-tooltip directive don't behave as I expect.

Steps to reproduce the bug

  1. Create a fairly wide element
  2. Add a tooltip with one of topleft topright bottomleft or bottomright
  3. The tooltip still appears in the middle of the element, just offset relative to the arrow

Expected behavior

I expect that when I tell the tooltip to have a position of topleft it would appear relative to the top-left corner of the source element, not still appearing in the middle.

Versions

Libraries:

  • BootstrapVue: 2.5.0
  • Bootstrap: 4.4.1
  • Vue: 2.6.11

Environment:

  • Device: Mac
  • OS: macOS Catalina 10.15.2 (19C57)
  • Browser: Electron (Chromium)
  • Version: Electron v7.1.11

Demo link

https://jsfiddle.net/v60h9jua/

@tmorehouse
Copy link
Member

tmorehouse commented Mar 5, 2020

The positions refer to the placement of the tooltip's body/arrow, rather than relative to the trigger element. The tooltip's arrow will always be centered (middle) on the side, but the tooltip will be pushed right/left/top/bottom based on the second part of the positioning.

jacobmllr95 added a commit that referenced this issue Mar 5, 2020
…pover directives (closes #4877) (#4880)

* chore(docs): show live examples of all positioning

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants