• Resolved gilad905

    (@gilad905)


    1. On a page with not much content (so that content itself does not overflow over the window height)
    2. when starting a download (so Chrome’s download bar appears on the bottom of the window)
    3. The div.blog-post height is minimized to fit content height, instead of stretching to the bottom of the page.
    Expected:
    https://drive.google.com/open?id=1agiNUWWf0NTZR4YhRwy4fjmpmH-qXkiQ
    Actual:
    https://drive.google.com/open?id=11tQnsxL4pgQ-n_07kMVpsmtOV3WERXJE
    4. On resizing the page, this problem is resolved immediately.

    After looking at the script, I found the problem in scripts.js:stickFooterToBottom().
    To fix, I have for now replaced

    if ( documentHeight < windowHeight + 20 ) {
    	$( '.main .blog-post' ).css( 'min-height', $( '.main .blog-post' ).outerHeight() + windowHeight - documentHeight + 10 );
    } else {
    	$( '.main .blog-post' ).css( 'min-height', 'inherit' );
    }

    with simply

    // if ( documentHeight < windowHeight + 20 ) {
     	$( '.main .blog-post' ).css( 'min-height', $( '.main .blog-post' ).outerHeight() + windowHeight - documentHeight + 10 );
    // } else {
    //	$( '.main .blog-post' ).css( 'min-height', 'inherit' );
    // }

    as I didn’t see the need for the min-height: inherit styling anyway.

    Hestia v1.1.66
    Chrome v64.0.3282.186
    Windows 7

    • This topic was modified 7 years ago by gilad905.
    • This topic was modified 7 years ago by gilad905.
Viewing 1 replies (of 1 total)
  • rodicaelena

    (@rodicaelena)

    Hi @gilad905,

    Thank you for contacting us and letting us know about this issue. We are currently investigating it and work on solution for the next releases.

    Regards,
    Rodica

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: page not stretched to window bottom on starting a download’ is closed to new replies.