ng2-tooltip-directive
ng2-tooltip-directive copied to clipboard
Auto placement is unstable
Hi,
I'm using ng2-tooltip-directive (2.9.20) and trying to open the tooltip right to my element, but top position in not stable, sometimes (usually for the first time after loading the page) the tooltip is right to the middle of the element, and sometimes in the bottom of the element.
Do you have any idea?
I found the problem, the position calculation is accrued before the content is loaded, and the height of the tooltip is 10px.
I tried to add min-height to the tooltip-class
, but the class is added to the tooltip element after the calculation.
Can you please change the code, and add the class to the tooltip before the positioning?
I have the same problem!
Even autoPlacement is not working correctly in provided demo as well(http://ivylab.space/tooltip/demo).