In that case you can try using Window#getScrollLeft and Window#getScrollTop.
You might also need to attach a ScrollHandler to the Window.
Usually I use a DockLayoutPanel. With it, you can decide which part of the page will scroll and which will stay static.
So one would attach a static Widget to the DockLayoutPanel#North and then the popup location 0,0, would work.
au lai seong wrote:I want website design which need scroll from browser. Dock layout is for application design.
As the name suggests, the DockLayoutPanel helps you lay out the child widget in the parent container. It has nothing to do with "application design" as you call it.
With the DockLayoutPanel, it is still possible to have the browser content scroll. All you need to do is wrap the scrollable widget inside a ScrollPanel and then add the ScrollPanel to the container