Hi,
I'm not sure to understand what you're trying to do,but at least, I know
that you can't set a size on a popup panel :-)
Its size is driven by what's inside !
regards


2008/12/8 Litty Preeth <[EMAIL PROTECTED]>

> Hi,
>
> I am having some issues in my GlassPanel. To fill the glass panel to fit in
> the whole document size (scrollable area) I am using the below method:
>
> *public* *class* GlassPanel *extends* PopupPanel {
>
>
>
>       ...................
>
>       ...................
>
>       *private* *void* fillScreen() {
>
>             *int* winWidth = Window.*getClientWidth*();
>
>             *int* winHeight = Window.*getClientHeight*();
>
>             *int* scrollWidth = RootPanel.*get*
> ().getElement().getScrollWidth();
>
>             *int* scrollHeight = RootPanel.*get*
> ().getElement().getScrollHeight();
>
>             String wdStr = winWidth+"px";
>
>             *if*(scrollWidth > winWidth) {
>
>                   wdStr = scrollWidth+"px";
>
>             }
>
>             String htStr = winHeight+"px";
>
>             *if*(scrollHeight > winHeight) {
>
>                   htStr = scrollHeight+"px";
>
>             }
>
>             setWidth(wdStr);
>
>             setHeight(htStr);
>
>       }
> }
>
> I also have a Timer inside my glasspanel which will call the fillScreen()
> method every 300ms. My issue is that each time the fillScreen method is
> called, the screen size grows by 2px. This happens only with IE. In firefox
> this works fine. I tried using RootPanel.get().getOffsetWidth() instead of
> Window.*getClientWidth*() but with no luck. This occurs irrespective of
> the window having a scrollbar or not.
>
> - 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