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.

Any thoughts?

Reply via email to