Let's add an Alignment argument that the tooltip center will use to position itself. For example, we could provide a value of Alignment.topRight and the tail tip will point itself on the child's box at the topRight corner. We'd likely need to flip the Alignment (multiply by -1) if we end up positioning ourselves in the opposite of preferredAxis.
Let's add an Alignment argument that the tooltip center will use to position itself. For example, we could provide a value of
Alignment.topRight
and the tail tip will point itself on the child's box at the topRight corner. We'd likely need to flip the Alignment (multiply by -1) if we end up positioning ourselves in the opposite ofpreferredAxis
.