Greetings..

We have an application that requires gadget height = viewport height
( dynamically adjusting as users size their browsers )

Normally this is very possible .. of course..
eg, iframes and divs can be auto sized in jQuery with

$(window).resize(function() {
   $("div_or_iframe_ID").height( $(window).height() - 25);
  });

jsFiddle here:   http://jsfiddle.net/LNGQk/

In the gadget context..  script sees the window height as the gadget
height ? . hence the above does not work because it sets the div /
iframe to static height of gadget.. not the dynamic height of the
viewport..

is there some way to allow div's/iframes inside a gadget to auto size
to the viewport and not the gadget?

Or.. since the gadget is the " window"  can we match the gadget height
to the viewport?

     gadgets.window.adjustHeight( $(viewport).height());

er..  anyway .. you get my drift hopefully..


-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle 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/Google-Gadgets-API?hl=en.

Reply via email to