I found the solution...

      *private* *void* fillScreen() {

            *int* wd = RootPanel.*get*().getOffsetWidth();

            *int* scrollWidth = RootPanel.*get*
().getElement().getScrollWidth();

            *if* (scrollWidth > wd)

                  wd = scrollWidth;

            *int* ht = RootPanel.*get*().getOffsetHeight();

            *int* scrollHeight = RootPanel.*get*
().getElement().getScrollHeight();

            *if* (scrollHeight > ht)

                  ht = scrollHeight;

            glassPanel.setSize(wd + "px", ht + "px");

      }

- Litty
On Wed, Nov 12, 2008 at 10:02 PM, Litty Preeth <[EMAIL PROTECTED]>wrote:

>
> Hi,
>
> I wanted to get the total height (scrollable area) of the root panel.
> I used the following:
> RootPanel.get().getOffsetHeight()
>
> In Firefox its working, but in IE 6 its giving me only the window
> height (ie. value of Window.getClientHeight()). Can you tell me if its
> a bug or please share if you have any workarounds.
>
> Basically I wanted to have a glass panel (LightBox effect) for popup
> window. I wanted to set the height of the glass panel as same as the
> RootPanel so that it dims the entire behind window when the popup
> comes. Now in IE the glass panel height is only the window height
> which prevents dimming bottom part of the screen.
>
> Regards,
> Litty Preeth
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to