mkn
mkn

Reputation: 13061

GWT DialogBox - setGlassEnabled(true) does not cover the whole window

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!enter image description here

Upvotes: 4

Views: 1867

Answers (3)

Akshat Agarwal
Akshat Agarwal

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

DiQ
DiQ

Reputation: 1

try

glassPanel.setSize("100%", "100%");

where glassPanel is the name of your panel, be sure to include the import statement.

Upvotes: 0

Krzysztof Zielinski
Krzysztof Zielinski

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

Related Questions