ng2-tooltip-directive icon indicating copy to clipboard operation
ng2-tooltip-directive copied to clipboard

Auto placement is unstable

Open chaya7908 opened this issue 4 years ago • 3 comments

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?

chaya7908 avatar Apr 16 '20 13:04 chaya7908

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?

chaya7908 avatar Apr 19 '20 12:04 chaya7908

I have the same problem!

Gabrieloczust avatar Jan 14 '21 12:01 Gabrieloczust

Even autoPlacement is not working correctly in provided demo as well(http://ivylab.space/tooltip/demo).

0xrisec avatar Nov 29 '21 08:11 0xrisec