>-----Original Message----- >From: Chris Geer [mailto:[email protected]] >Sent: Thursday, May 10, 2012 7:16 PM >To: users >Subject: Error with gadgets.window.adjustHeight() > >I'm trying to call gadgets.window.adjustHeight(); from within my gadget and >sometime it works and others it doesn't. When it has problems it's because >of an error in this method: > >/* > RPC Callback handlers > */ >/** > * Resizes the iFrame when gadgets.window.adjustHeight is called > * > * @param args the RPC event args > */ >function resizeIframe(args) { >var max = 0x7FFFFFFF; >var height = args.a > max ? max : args.a; >args.gs.setHeight(height); > } > >When I debug the method what I see is that args.a is an Array with a single >value so that causes height to be null. I'm not sure what would cause that >though.
Interesting. Sounds like something is going on in the Shindig common container. Are there any cases that you can reliably reproduce the error under? > >Any thoughts?
