tags:

views:

34

answers:

0

I have orders to extend the height of the iframe Dole capture and adjust web within the iframe no scroll, but if the Web is highly scalable and so the tab ui acordion can not know or understand the actual high was. Do you have any suggestions me

function frameHeight(obj){
    var inFrameHeight = obj.contentWindow.document.body.offsetHeight;
    var inFrameHeight2 = obj.contentWindow.document.body.scrollHeight;

    if(inFrameHeight2 < inFrameHeight){
        inFrameHeight=inFrameHeight2;
    }

    if(inFrameHeight != obj.height){
        if(inFrameHeight < plus.frameMinHeight){
            obj.height = plus.frameMinHeight;
        }else if(inFrameHeight > plus.frameMaxHeight){
            obj.height = plus.frameMaxHeight;
        }else{
            obj.height = inFrameHeight;
        }
    }
}