tldr; I am trying to open a popup dialog relative to a cell in a CompositeCell column header in a DataGrid. I think I am close, but it's not quite right. The Popup opens in the upper-left corner of the window.
I have a ClickableTextCell and can either catch the click event by overridding the onBrowserEvent or simply using the default behavior which is to call the FieldUpdater.update() method. So far so good.
But the Popup.showRelativeTo() method takes a UIObject, which the Cell is not. I discovered the CellWidget wrapper, so when creating the column header, I wrap the ClickableTextCell with a CellWidget. Using the FieldUpdater.update() method, I can then open the popup using showRelativeTo(theCellWidget). But the popup opens in the upper-left corner of the browser window. On inspection, theCellWidget absoluteLeft and Top are 0,0.
I am wondering if this is because when the CellWidget is created, the Cell is not yet visible.
Is it possible, and if so, how can I open a popup relative to a ClickableTextCell in a DataGrid?
Thanks in advance for any insight,
The following links provided guidance, but are not directly related to the question at hand.https://groups.google.com/g/google-web-toolkit/c/cobba9KOwmk/m/PG5wD-bc9uIJ
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/8bb4a2ae-e3c5-4dcd-9ea9-ad2c9403db52n%40googlegroups.com.