Open a subwindow near a button

In a grid I have one button for each cell. When the user press a button, a subwindow opens. I would like to open the subwindow near the button pressed. Is it possible to get x,y position of the button? I read on this forum about PopupView, but is it possible with Subwindow?
Thank you, Francesco

Currently it’s not possible to query component positions from the client.

You could use LayoutClickListeners as a workaround, they provide information about the click position.