You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/tooltip-position-rotated-div.md
+47-45Lines changed: 47 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,16 +25,58 @@ ticketid: 1657431
25
25
26
26
## Description
27
27
28
-
When rotating div elements that have an associated [Tooltip]({%slug tooltip-overview%}) to display additional information, the Tooltip might not align correctly with the target element. The goal is to adjust the Tooltip's position so it aligns appropriately with the center of the rotated div, and optionally, remove the Tooltip's callout pointer for a cleaner appearance.
28
+
When rotating `<div>` elements that have an associated [Tooltip]({%slug tooltip-overview%}) to display additional information, the Tooltip might not align correctly with the target element. The goal is to adjust the Tooltip's position so it aligns appropriately with the center of the rotated `<div>`, and optionally, remove the Tooltip's callout pointer for a cleaner appearance.
29
29
30
30
This KB article also answers the following questions:
31
-
- How to correctly position a Tooltip on a rotated div in Blazor?
31
+
- How to correctly position a Tooltip on a rotated `<div>` in Blazor?
32
32
- How can I hide the callout pointer of a Tooltip in Blazor?
33
33
- Is there a way to dynamically adjust Tooltip positioning based on element rotation in Blazor?
34
34
35
35
## Solution
36
36
37
-
To address the issue of Tooltip misalignment on rotated div elements, consider the following two approaches:
37
+
To address the issue of Tooltip misalignment on rotated `<div>` elements, consider the following two approaches:
38
+
39
+
### Use an Inner Tooltip Target
40
+
41
+
Embed a tooltip target within the rotated element that won't be affected by the rotation. This method ensures the Tooltip aligns correctly without additional adjustments.
@@ -89,48 +131,8 @@ Calculate the necessary offset for the Tooltip and apply it as a margin style. A
89
131
}
90
132
````
91
133
92
-
### Use an Inner Tooltip Target
93
-
94
-
Embed a tooltip target within the rotated element that won't be affected by the rotation. This method ensures the Tooltip aligns correctly without additional adjustments.
0 commit comments