• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
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.
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!