[PR #1805] Modify tooltip positioning and tooltip triangle pointer positioning #2912

Closed
opened 2026-01-29 18:21:04 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/1805

State: closed
Merged: No


  • Determine tooltip-content css-class solely in javascript method openPopup().
  • Added support for left/right alligned triangle pointer for top/bottom tooltip.
  • Added support for top/bottom alligned triangle pointer for left/right tooltip.
  • Recalculate left position for bottom/top tooltips if they extend right side of screen.
  • Recalculate top position for left/right tooltips if they extend bottom side of screen.

I made this solution before Commit a0f1545 ("Tooltip position updated when forced to change"), so unfortunately i have not implemented that current fix/solution. However i dont see the need for that with this current code.

Have tested DateGrid/Chart popups too and have tried to avoid configuring theese as much as possible.
The "reset" logic of removing all css-classes before adding new might be able to be done more cleanly.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1805 **State:** closed **Merged:** No --- - Determine `tooltip-content` css-class solely in javascript method `openPopup()`. - Added support for left/right alligned triangle pointer for top/bottom tooltip. - Added support for top/bottom alligned triangle pointer for left/right tooltip. - Recalculate left position for bottom/top tooltips if they extend right side of screen. - Recalculate top position for left/right tooltips if they extend bottom side of screen. I made this solution before Commit a0f1545 ("Tooltip position updated when forced to change"), so unfortunately i have not implemented that current fix/solution. However i dont see the need for that with this current code. Have tested DateGrid/Chart popups too and have tried to avoid configuring theese as much as possible. The "reset" logic of removing all css-classes before adding new might be able to be done more cleanly.
claunia added the pull-request label 2026-01-29 18:21:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2912