i am developing a GWT mobile application with GWT 2.4. i want my DialogBox to be seen always on the center of the user’s viewport on zoom or on normal view. On normal view, center() can handle it but when the page is zoom, the DialogBox pops on center of the whole browser window which includes the scroll part of the page not on the center of the user’s viewport. how to do this? please help. thanks in advance.
i am developing a GWT mobile application with GWT 2.4 . i want my
Share
You need to attach a handler to your window that catches the zoom event. In this handler, you call
You may need to add a check for situations when your dialog is bigger than the browser window, if you want to treat them differently.