Dynamic ellipsis for a text with tooltip. #2341
Description
Hello,
I needed to achieve dynamic ellipsis for a text like when u resize the windows the text resizes itself automatically.
There is a solution without javascript using a display: table container with table-layout: fixed as a wrapper around the overflown text. In order to make this work the text itself also needs to be in block element on which the tooltip will be applied (other than block is not working for ellipsis). The problem is that the block display will move the right side tooltip away from the text itself when container the tooltip applied on is wider than the text. I cannot put other positioning for the tooltip as the text is in the first column of a table and there is no space at left side. Nor bottom/top works nicely.
I managed to sort this by calculating the width of the text using another helper container. I changed the tooltip source code and now I have my own version, I always have to merge with new upcoming angular bootstrap versions.
I'm not sure how frequent this problem is for developers or if there is another workaround, but maybe it would be a nice idea to extend the tooltip with this functionality in order to support dynamically "ellipsed" text.
Also what is the way to become a contributor of this project?
Thank you,
Csaba