How to track container's last resize

Godot Version

v4.2.1

Question

I am developing a UI system for my 2d game. I need to create a hover label for inventory. I decided to make it a child of the inventory slot with a structure like this:
image
This label may change its size if the object within the slot is changed.
Now for the problem. I want to move the label after it is fully resized (so that it doesn’t hit the edge of the screen), but I don’t know how to tell if the resize process is finished or not. The resize signal of the HoverLabel container is called several times before it’s done. The worst part – the number of times it’s called varies for different cases. I cannot move the object while there is still one resize signal to go (it will mess up the size of the scene) and I don’t know any way to tell if there are still any resize’s upcoming.
This seems like a task, many would have solved. So I hope there is a way to handle it.