Skip to content

tooltip.js data-placement implementation #23235

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

Closed
jipexu opened this issue Aug 7, 2017 · 1 comment
Closed

tooltip.js data-placement implementation #23235

jipexu opened this issue Aug 7, 2017 · 1 comment
Labels

Comments

@jipexu
Copy link
Contributor

jipexu commented Aug 7, 2017

Hi

  • as i look for solve this problem :
    how to use tooltip on truncated element (with text-truncate) ...
    in this case the tooltip is positioned on the middle axis of the original width element what is not acceptable and also the the text-truncate provide a second tooltip (browser?) starting at the mouse position ...

  • so i said me i will use the data-placement top-start (but is not implemented in our js) so i quick and dirty modified the var AttachmentMap as adding "TOP-START":"top-start", "TOP-END":"top-end",

so now i can use top-start to solve this problem and it's work fine except that i havent the arrow on this case (forgot something in the js or is a popper.js problem ? )

I think it will be good, as we provide the use of data-placement, that we can use all (or let say the main) properties provided by popper for this attribut ??

what are your advice on this ?

Thanks

@Johann-S
Copy link
Member

Johann-S commented Aug 7, 2017

This is related to : #22962
But yes we'll handle all the Popper's position 👍

And we are open to any PR if someone want to tackle that 😄

@Johann-S Johann-S closed this as completed Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants