Footer padding bottom goes wrong
See original GitHub issueWhen 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:
- Created 8 years ago
- Comments:12 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in the latest version: http://jsfiddle.net/wenyi/e3nk137y/26123/
This error still exists