primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dynamic Tooltip rendering wrong

Open csvinhal opened this issue 7 years ago • 1 comments

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) https://github-yibmjy.stackblitz.io (https://stackblitz.com/edit/github-yibmjy)

Current behavior When changing dynamically the Tooltip text to one with a different size, it doesn't render correctly. The Tooltip size is correctly re-calculated but not it's position.

Expected behavior When changing dynamically the Tooltip text to one with a different size, it should recalculate the Tooltip position correctly.

Minimal reproduction of the problem with instructions

  • Open the case (https://github-yibmjy.stackblitz.io)
  • Get focus to the input field. (Notice the Tooltip at this point).
  • Start typing. (Tooltip will change the message, change size and get in a wrong position)

What is the motivation / use case for changing the behavior? There is some cases we need to change the Tooltip text dynamically and it's rendering in a wrong position making the user experience bad.

  • Angular version: 8.X
  • PrimeNG version: 8.X

csvinhal avatar Nov 14 '19 12:11 csvinhal

Fixed in https://github.com/primefaces/primeng/commit/12ccdd84c9ff0e70f7fb9f23598bb00900acb1ea

yigitfindikli avatar Dec 04 '19 11:12 yigitfindikli