Gave up on 2.0 because of the "-style" bug (another thread) but did
come up with a workaround to accommodate Firefox.
Original code: DOM.setStyleAttribute(glass.getElement(), "height",
"100%");
Workaround: DOM.setStyleAttribute(glass.getElement(), "height", new
Integer(Window.getClientHeight()).toString());
And, of course, if someone resizes the window, I added the following
handler:
Window.addResizeHandler(new ResizeHandler() {
// this is a tweak so that glass works in Firefox
public void onResize(ResizeEvent event) {
DOM.setStyleAttribute(glass.getElement(),
"height", new Integer
(Window.getClientHeight()).toString());
}
});
It's not perfect, but it's darn close.
On Dec 2, 11:21 am, Yozons Support on Gmail <[email protected]> wrote:
> Sorry for the typo, but it's DialogBox (and neither DialogBog or DialogueBox
> <smile>). It is a method on PopupPanel and could very well be 2.0. If you
> are getting started on a new project, I recommend going to 2.0RC2 now
> because you'll need to upgrade at some point anyway, and because it's an
> RC2, it's fairly stable for development work, and the ability to debug in FF
> (or IE if you prefer) directly is a huge win.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.