[TUTORIAL] Tooltip - Simple widget positioning, relative to slot grid inventory, bag.

Positioning tooltip relative to slots.
This is not positioning relative to the mouse. Only relative to the slot grid.
One tooltip widget supporting all slots. It is positioned on the right or left side of the slot.

I have been looking for a good and simple method for a long time.
It came out very nice and simple so I decided to share it.
In total, nothing special but maybe someone will be useful.

Positioning tooltip relative to slots:
Drag Widget (skip it):

Widget does not go out of screen:

How does it work in practice: