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

I set the glass according to the GWT dialog box. However, when the user scrolls in the window, the "glass effect" no longer covers the entire window.

Does anyone know how to fix this? Thanks so much for any advice! enter image description here

+4
source share
3 answers

You need a css property like

moveToPopUp.setGlassStyleName("myApp-PopupPanel-GlassStyle"); 

Where

 .myApp-PopupPanel-GlassStyle{ background-color : #333; opacity : 0.4; clip : rect(auto,auto,auto,auto); } 
+1
source

There is no direct fix, but you can:
1. Remove scroll when showing popup using addStyleName, removeStyleName
2. There is another solution, but you must change the layout of your style and limit your functionality, so I do not recommend this. But if you are interested, I can describe it.

0
source

to try

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

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

0
source

Source: https://habr.com/ru/post/1385335/


All Articles