don't resize iframe if we can't find a final size greater than 0
This commit is contained in:
parent
6da04d16bd
commit
7965f72c8c
|
@ -1,5 +1,5 @@
|
||||||
function resizeIframe(obj) {
|
function resizeIframe(obj) {
|
||||||
obj.style.height = 0;
|
//obj.style.height = 0;
|
||||||
_resizeIframe(obj, 0);
|
_resizeIframe(obj, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
if (desth!=ch) {
|
if (desth!=ch) {
|
||||||
setTimeout(_resizeIframe, 500, obj, ch);
|
setTimeout(_resizeIframe, 500, obj, ch);
|
||||||
} else {
|
} else {
|
||||||
obj.style.height = ch;
|
if (ch>0) obj.style.height = ch;
|
||||||
setTimeout(_resizeIframe, 1000, obj, ch);
|
setTimeout(_resizeIframe, 1000, obj, ch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue