Sets a new widget to be attached to this.
If this is visible, the position will be updated.
Note: the ownership of popovers is always given to their relative_to
widget, so if relative_to
is set to
null on an attached this, it will be detached from its previous
widget, and consequently destroyed unless extra references are kept.
this |
a Popover |
relative_to |
a Widget |