Bug: page not stretched to window bottom on starting a download
-
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 replacedif ( 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
- The topic ‘Bug: page not stretched to window bottom on starting a download’ is closed to new replies.