question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Footer padding bottom goes wrong

See original GitHub issue

When table option height: 'auto' and showFooter: true, the padding-bottom suppose set 0px, however it give a value there that caused extra padding on bottom.

Here is the fiddler example: http://jsfiddle.net/qLo4vj8h/2/

I have solved the problem in function BootstrapTable.prototype.resetView

        if (this.options.showFooter) {
            this.resetFooter();
            if (this.options.height) {
                padding += this.$tableFooter.outerHeight() + 1;
            }

            if (this.options.pagination === false) {
                padding = 0;
            }
        }

I am not sure is this solution is the correct way to apply. Seeking for advises , Thank you.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
wenzhixincommented, Apr 5, 2018

Fixed in the latest version: http://jsfiddle.net/wenyi/e3nk137y/26123/

0reactions
mtngnncommented, Mar 14, 2021

This error still exists

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you get the footer to stay at the bottom of a Web page?
Add bottom padding to the main content div that is equal to the height plus padding of the footer; Set the z-index of...
Read more >
Sticky Footer - What's wrong with padding the bottom?
With all these sticky footer options running around, could someone please enlighten me as to why you simply don't add padding to the...
Read more >
Margin problems with sticky footer - HTML & CSS - SitePoint
The problem I have is to create a consistent top and bottom margin of 15px ... For the sticky footer I use the...
Read more >
How to keep your footer where it belongs ? - freeCodeCamp
The content-wrap has a bottom padding that is the height of the footer, ensuring that exactly enough space is left for the footer...
Read more >
An image in a header or a footer may overlap into the data ...
Additionally, the image is not resized when header or footer margins are ... the corresponding relationships for the Bottom Margin and the Footer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found