INNER CODE UNIT · JavaScript

handleResize

ensisoft/detonator · docu/OpenGL Camera_files/songho.js:50

function handleResize(e)
{
    let commentBlock = document.getElementById("commentblock");
    if(commentBlock)
    {
        let windowHeight = getWindowHeight();
        let commentHeight = commentBlock.offsetHeight;
        if(windowHeight > commentHeight)
        {
            // reset the top position
            let offset = getScrollOffset();
            commentBlock.style.top = (offset.y + MARGIN_TOP_COMMENT) + "px";
        }
    }
}


View source record →

📰 Research Paper
Loading…
⏳ Fetching content…