Hi,
>From yesterday my applications have just stopped resizing..the resize
function that i am using is ..
gadgets.window.adjustHeight = function(opt_height)
{
var newHeight = parseInt(opt_height, 10);
if (isNaN(newHeight))
{
var vh = gadgets.window.getViewportDimensions().height;
var body = document.body;
var docEl = document.documentElement;
if (document.compatMode == 'CSS1Compat' &&
docEl.scrollHeight)
{
newHeight = docEl.scrollHeight != vh ?
docEl.scrollHeight : docEl.offsetHeight;
}
else
{
var sh = docEl.scrollHeight;
var oh = docEl.offsetHeight;
if (docEl.clientHeight != oh)
{
sh = body.scrollHeight;
oh = body.offsetHeight;
}
if (sh > vh)
{
newHeight = sh > oh ? sh : oh;
}
else
{
newHeight = sh < oh ? sh : oh;
}
}
}
if (newHeight != oldHeight)
{
oldHeight = newHeight;
var p = opensocial.Container.get().params_;
_IFPC.call(
p.panelId,
"resizeWidget",
[p.panelId , opt_height],
p.remoteRelay,
null,
p.localRelay,
null);
}
};
}());
can any body tell me wats wrong in this...
Please Replay As Soon As Possible..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---