Did you ever solve this issue?  I'm running into the same situation.

On Friday, January 21, 2011 6:57:20 AM UTC-8, Kevin wrote:
>
> Perhaps the problem is in the iframe? 
>
> My guess us that while the iframe is grabbing the page from another 
> site, gadgets.window.adjustHeight() executes and does not know what 
> the size is until the page returns. 
>
> As if I need to wait until the iframe returns before calling the 
> adjustHeight()? Maybe as some ajax callback? 
>
> This is my first gadget, so I am not very familiar yet. 
>
> On Jan 18, 12:14 pm, Kevin <[email protected]> wrote: 
> > Or perhaps I am doing this in a completely inefficient way :-) 
> > 
> > Let me know if you have any suggestions on the general implementation. 
> > 
> > Thanks! 
> > 
> > On Jan 17, 10:24 pm, Kevin <[email protected]> wrote: 
> > 
> > > I am trying to dynamically adjust the height of my gadget. My xml 
> > > loads the content from a php file. I'd like the gadget to change 
> > > height with each load. Below is what I have. Please let me know if you 
> > > see anything that might be wrong... 
> > 
> > > <?xml version="1.0" encoding="UTF-8" ?> 
> > > <Module> 
> > >   <ModulePrefs 
> > >     title="blah blah blah" 
> > >     height="100" 
> > >     scrolling="true"> 
> > >       <Require feature="dynamic-height"/> 
> > >   </ModulePrefs> 
> > >   <Content type="html"> 
> > > <![CDATA[ 
> > > <script type="text/javascript"> 
> > > function init() { 
> > >   document.getElementById("container").innerHTML='<iframe src="http:// 
> > >mysite.com/gadget.php" frameborder="0" height="100%" width="100%"></ 
> > > iframe>'; 
> > >   gadgets.window.adjustHeight();} 
> > 
> > > gadgets.util.registerOnLoadHandler(init); 
> > > </script> 
> > > <div id="container">asdf</div> 
> > > ]]> 
> > >   </Content> 
> > > </Module>

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/Google-Gadgets-API/-/NmEPztLXaW8J.
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-Gadgets-API?hl=en.

Reply via email to