Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep "configure" on screen when resizing #45

Open
mediaguycouk opened this issue Oct 6, 2020 · 1 comment
Open

Keep "configure" on screen when resizing #45

mediaguycouk opened this issue Oct 6, 2020 · 1 comment
Labels
PanoptoInternalTracking Panopto has created an internal work item to investigate this issue.

Comments

@mediaguycouk
Copy link

The configure buttons - https://drive.google.com/file/d/1kKBC_CKVolB3095KyzDNr_NCrOTb0XB6/view?usp=drivesdk - are always off-screen, even when there isn't enough content in Panopto/Blackboard to warrant a scroll bar.

I haven't checked exactly what size you need, but I think this can fixed by checking for the configure buttons and adding some more space.

A few lines to do this are below "// Add extra space if the reconfigure options are on screen"
https://github.com/Panopto/Blackboard-9.1-Plugin-for-Panopto/blob/master/WebRoot/Content.jsp

function fitToWindow()
{
    var heightBuffer = 190;
    var windowHeight = 800;
    var navBarHeight = 650;

    if (typeof window.innerHeight != 'undefined')
    {
        windowHeight = window.innerHeight;
    }

    // Add extra space if the reconfigure options are on screen
    var cbExists = document.getElementById("configButtons");
    if(cbExists){
        heightBuffer += 100;
    }

    // Take the window height and subtract the top tabs (90 px) and some buffer for incidental items
    var contentHeight = windowHeight - heightBuffer;

    // The nav bar works better with the page at this height.
    document.getElementById("navigationPane").style.height = navBarHeight;
    var blackboardPageHeight = Math.max(navBarHeight, contentHeight);

    // Set height of content divs column.
    // Containerdiv is created by the BBNG presets.
    document.getElementById("containerdiv").style.height = contentHeight;
    
    document.getElementById("courseContent").style.height = contentHeight;
    document.getElementById("contentPanel").style.height = blackboardPageHeight;
}
</script>

Outside of Javascript, you could just add more height to the height buffer if you know that the buttons appear before loading the page.

@jmalmsten-panopto jmalmsten-panopto added the PanoptoInternalTracking Panopto has created an internal work item to investigate this issue. label Sep 2, 2021
@jmalmsten-panopto
Copy link
Contributor

Hi,

I have filed an internal work item for Panopto to investigate this issue. If you have any other issues please contact Panopto support at https://support.panopto.com.

Thanks,
Joe Malmsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PanoptoInternalTracking Panopto has created an internal work item to investigate this issue.
Projects
None yet
Development

No branches or pull requests

2 participants