The trick was the hack that allows you to get the DataGrid ScrollPanel so you can get the horizontal scroll to correct for the calculated offsetLeft of the widget.
On Tuesday, February 9, 2021 at 10:41:15 AM UTC-8 linus...@gmail.com wrote:
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.Details: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,LinusThe 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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/d16365b7-2fe5-4db0-aef1-5c33ba514d23n%40googlegroups.com.