This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

GWT 2.0 PopupPanel with GXT

 
author
Posts: 4173
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upgrading to GWT 2.0 broke the GWT PopupPanel displaying over a GXT form. Right now when the popup displays, the text of FormPanel objects is visible on top of the popup window. Also if you click the TextField super-imposed over the popup it moves into focus.

I'm assuming GXT will release a fix for this eventually, anyone have a solution in the meantime? I've tried putting pictures, images, and panels filled with background color but either way the text form the forms displays as an overlay over images, panels, etc.
 
Bartender
Posts: 2481
108
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to be honest i do not have much idea about 2.0 and GXT,

If I was you, I would also try a css solution:z-index
http://www.w3schools.com/Css/pr_pos_z-index.asp

just a suggestion....
 
Scott Selikoff
author
Posts: 4173
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Salvin,

That worked! My guess is the GWT update lowered the z-index value of the PopupPanel such that background elements were able to be placed on top. I just created a new style in my css file was set with a high z-index value, then called popup.setStyle(...).

Thanks!
-Scott
 
Scott Selikoff
author
Posts: 4173
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually with a bit of testing I discovered the value has to be "z-index: 2" or higher. Though, given that its a popup a much higher value should work since you always want it on top of everything.
 
Scott Selikoff
author
Posts: 4173
29
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another note: If you had Flash SWF in the background you need to set the property "wmode = transparency". For whatever reason, this was not needed previously, but in 2.0 is needed else Flash in the background will appear above any PopupPanel objects.
 
salvin francis
Bartender
Posts: 2481
108
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Scott Selikoff wrote:Hey Salvin,

That worked! My guess is the GWT update lowered the z-index value of the PopupPanel such that background elements were able to be placed on top. I just created a new style in my css file was set with a high z-index value, then called popup.setStyle(...).

Thanks!
-Scott


cool!

I am glad i could be of service..

As a side note, the wmode= transparent basically removes the background of the flash file and makes it transparent. this is what i did to make that watch in my site,
take care when using flash within components such as splitter panels....
 
Right! We're on it! Let's get to work tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!