Hi guys,
I have a iframe in which i have a ajax control Toolkit tabcontainer control and i am using a javascript to re size the iframe to fit its contents....
the script works fine in all browsers whenever the page reloads but when i change an active tab of the tabcontainer it goes haywire in Chrome only and calculates a height which is less than what is required to accommodate the entire page.
i know this because the footer ends up clipped...
however magically this works very well in FF,IE8 and even IE6.
this is the code that i use
var F = parent.document.getElementById("f1");
if (Boolean(window.chrome)) {
F.height = F.contentDocument.documentElement.scrollHeight + "px";
}
else
F.height = F.contentWindow.document.body.scrollHeight + "px";
f1 is the iframe and i use this Window.isChrome to work something up for chrome but no luck..
Has anyone faced this????? Please help
P.S i call this resizing function on onClientActiveTabChanged
thanks a lot