Friday, October 4, 2013

How to position the GWT dialog to the bottom right corner of the browser?

I want to position the GWT dialog to the bottom right corner of the browser. There a fixed footer in my website (height=50px) & I want dialog to be shown as in the following pic.


Look at this code:

    int browserHeight=Window.getClientHeight();
    int browserWidth=Window.getClientWidth();
    dialog.setPopupPosition(browserWidth-dialog.getElement().getClientWidth(), browserHeight-dialog.getElement().getClientHeight());
    dialog.show();


The above code will make the position starts from the very last pixel of the browser (ie bottom=0 & right=0), which is not what i expect. Also, I don't like to use css cos browser incompatible problem.

so, How to position (via coding) the GWT dialog to the bottom right corner of the browser?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate