I have just installed the newest google chrome and just trying to test GWT 2.3 code with DialogBox; For some reason the option like setGlassEnabled(true); works in a strange way 🙁
If chrome’s scroll pane (y position is 0) the glass is painted correct
but if
chrome’s scroll pane (y position is > 0) then the glass is keeping in 0 position so the chrome’s rest bottom is not covered with glass 🙁
I am to show my constructor first glass options as
...
public MyDIalog() {
this.setGlassEnabled(true);
this.setAnimationEnabled(true);
this.setModal(true);
this.setPreviewingAllNativeEvents(true);
...
I am not pretty sure what makes the bug or something because the code works fine in IE and FF :S
So I guess in the chrome the glass position is always static or something and its location is always
x,y{0,0} w,h{firstInitedWidth,firstInitedHeight}
So my question is is there a walk around for chrome?
Thanks
Solved:
Make your own class that extends PopupPanel and add this:
This simply sets the position of the glass panel to fixed instead of absolute. This makes the panel not move with the scroll.