bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Tooltip to appear only on truncated text

Open seminolas opened this issue 9 years ago • 5 comments

Bug description:

See plunker - when the width of the html pane is reduced to force ellipsis truncation, the tooltip doesn't appear on first hover, but does on second.

I realise this is may not be a bug, but my clunky use of angular. If so, I'd appreciate any clues for resolving this. Many thanks!

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/aqZq0ySiHhssy9l9ggTB?p=preview

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.8

UIBS: 1.3.0

Bootstrap: 3.3.6

seminolas avatar Dec 15 '16 17:12 seminolas

Try this: https://plnkr.co/edit/py8QQb?p=preview

adgoncal avatar Jan 03 '17 22:01 adgoncal

That works, thanks! Unfortunately, I'm currently stuck at an older version -it didn't work quite so well, so I went the manual route for now. Nevertheless, I think/hope someone will find this useful :-)

seminolas avatar Jan 17 '17 02:01 seminolas

Hi, I used a similar approach to solve this but I am facing the issue of having the tooltip placement way too far from the text when the text is much longer than its container.

I could reproduce this using a fork of @adgoncal 's Plunkr

tooltip-issue

Did you use a work around for this or am I missing something?

RosanaRufer avatar Feb 17 '17 14:02 RosanaRufer

@Totemika You have min-width: 150px on .truncate Try changing that to a smaller value.

adgoncal avatar Feb 17 '17 14:02 adgoncal

Thanks!

RosanaRufer avatar Feb 18 '17 10:02 RosanaRufer