Reputation: 13061
I set glass enabled to true of a GWT dialog box. However, when the user has scrolled down in the window, then the "glass effect" does not cover the whole window anymore.
Does anyone know how to fix that? Many thanks for any advices!
Upvotes: 4
Views: 1867
Reputation: 2847
You need a css property such as
moveToPopUp.setGlassStyleName("myApp-PopupPanel-GlassStyle");
where
.myApp-PopupPanel-GlassStyle{
background-color : #333;
opacity : 0.4;
clip : rect(auto,auto,auto,auto);
}
Upvotes: 1
Reputation: 1
try
glassPanel.setSize("100%", "100%");
where glassPanel
is the name of your panel,
be sure to include the import statement.
Upvotes: 0
Reputation: 400
There is no straight fix available, but you can:
1. Remove scroll when showing popup with addStyleName, removeStyleName
2. There is also other solution, but you have to change layout of your style and will limit your functionality so I do not recommend this. But if you are interested I can describe this.
Upvotes: 0