Most of the time, issues relating to gadgets.window.adjustHeight are
due to it being called before the application's DOM finishes rendering
which is why the setInterval hack sometimes works and sometimes does
not. If you refactor your code a bit to ensure adjustHeight is being
called after the DOM has fully updated, you won't have to rely on the
setTimeout or setInterval functions at all.

If anyone has an application that does NOT use either setInterval or
setTimeout but DOES display inconsistent adjustHeight behavior (e.g.
sometimes the height is adjusted correctly and sometimes it isn't),
please reply with the link and I'll take a look.

- Jason

On Aug 24, 10:10 pm, "RAJA SEKHAR" <[EMAIL PROTECTED]> wrote:
> ok And this is working some times and some times it is not working in FF
>
> This is comppletely not working in IE 7
>
> can u lok at this please
>
> Thanks
> Rajasekhar
>
> On Mon, Aug 25, 2008 at 10:37 AM, Ramanpreet Singh
> <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > Hey Raja.
>
> > setTimeout will just call it once, use setInterval..
>
> > RAJA SEKHAR wrote:
> > > HI
>
> > > I used the folllowing code but this is not working
>
> > > function adjustPageHeight()
> > > {
> > >  gadgets.window.adjustHeight();
> > >  window.setTimeout('adjustPageHeight()',1000);
> > > }
>
> > > can any one help me
>
> > > Thanks
> > > Rajasekhar
>
> > > On Sun, Aug 24, 2008 at 8:31 AM, Pedro Teixeira <[EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>> wrote:
>
> > >     A quick hack is to use setInterval("gadgets.window.adjustHeight();",
> > >     1000) -- this has been the only effective way to have our apps with
> > no
> > >     scrolls all the time.
>
> > >     []'s
> > >     Pedro
>
> > >     On Aug 23, 3:25 am, "tauhid noori" <[EMAIL PROTECTED]
> > >     <mailto:[EMAIL PROTECTED]>> wrote:
> > >     > gadgets.window.adjustHeight('400px');
>
> > >     > On Thu, Aug 21, 2008 at 12:59 PM, [EMAIL PROTECTED]
> > >     <mailto:[EMAIL PROTECTED]> <
>
> > >     > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> > >     > > hello everyone,
>
> > >     > > I am quite new to Orkut apps.
>
> > >     > > I have been trying to develop an application for a game that I
> > >     already
> > >     > > have. I have managed to fetch remote content.
>
> > >     > > But I cannot figure out how to use
> > >     > > gadgets.window.adjustHeight();
>
> > >     > > It will be really helpful to look at a sample code.
> > >     > > Thanks in advance.
>
> > >     > --
> > >     > Tauhid- Hide quoted text -
>
> > >     > - Show quoted text -
>
> --
> Sekhar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to