This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
Joined: Mar 06, 2011
I want website design which need scroll from browser. Dock layout is for application design. Will try on your suggestion.
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