Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pop up which will fix to window's left top coner without effected by scrolling

 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to do Pop up which will fix to window's left top coner without effected by scrolling? The pop up provided by gwt is effected by scrolling.
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

1) Are you explicitly setting the popup position?
2) What panel do you have? DockLayoutPanel?
 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes fixed position.
I am not using dock layout since my design is not application look&feel. The whole page is extending Composite with uibinder <g:HTMLPanel>
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want website design which need scroll from browser. Dock layout is for application design. Will try on your suggestion.
 
Maneesh Godbole
Saloon Keeper
Posts: 11185
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
au lai seong
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think i understand what you meant. The website explain the dock layout panel
http://blog.discovr.net/post/516021390/layout-your-app-using-gwt-2-0-the-way-you-want-it

I will try it. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic