Sometimes calling adjustHeight() too quickly can change the height of the gadget before the gadget is done rendering, leading to scrollbars. For example, if you use images in your gadget and call adjustHeight() before the images have finished loading, then when the images appear they will "push" the content of your gadget down, causing a scrollbar.
One workaround for this specific issue is to assign a set height and width for each image you use in your application. For example, instead of <img src="..." />, use <img style="height: Xpx; width: Ypx" src="..." />, where X and Y are the dimensions of the image you are loading. Hope this helps, ~Arne On Jul 15, 4:09 am, Adi <adi...@gmail.com> wrote: > Hi friends, > > In my application gadgets.window.adjustHeight() is not working > properly.Gadget displaying scrollbars. > > Iam using gadgets.window.adjustHeight() funciton effectively whever > content change. > > Can any one suggest me how to adjust gadget height dynamically.. > > Thanks and Regards, > Adiyya --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---