Yes ofcourse..... my glass panel popup has a SimplePanel inside it..... So
when I set the size of the popup... it will set the size of this
simplepanel....
GlassPanel is nothing but a semi transperant layer, which comes underneath a
modal popup to show the user that the below panel is disabled.
My problem is that, the Window.*getClientHeight*() and
RootPanel.*get*().getElement().getScrollHeight()
returns 2px greater than the actual size in IE. So each time I call the
fillScreen function, my popup height is growing by 2px. Please let me know
if I am using the right logic to fill the screen with the glass popup panel.
Thnx,
Litty Preeth
On Mon, Dec 8, 2008 at 7:53 PM, olivier FRESSE <[EMAIL PROTECTED]>wrote:
> 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
-~----------~----~----~----~------~----~------~--~---