You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To fix the second problem, add these lines at the end of horizontalScroll() function:
// Synchronize footer position with table body
if (this.options.showFooter && !this.options.cardView) {
this.$tableFooter.scrollLeft(this.$tableBody.scrollLeft());
}
Additional Context
Windows 10
Chrome 130
Bootstrap 3
The text was updated successfully, but these errors were encountered:
This is a bug that only exists in Bootstrap 3. Since Bootstrap 3 is no longer being maintained, it is recommended to upgrade to Bootstrap 5. For Bootstrap 3, here is a temporary solution.
bootstrap-table-bootstrap3.js
const_resetView=BootstrapTable.prototype.resetViewBootstrapTable.prototype.resetView=function(params){_resetView.apply(this,[params])setTimeout(()=>{// only bootstrap3this.$tableBody.trigger('scroll')},100)}
This is a bug that only exists in Bootstrap 3. Since Bootstrap 3 is no longer being maintained, it is recommended to upgrade to Bootstrap 5. For Bootstrap 3, here is a temporary solution.
bootstrap-table-bootstrap3.js
const_resetView=BootstrapTable.prototype.resetViewBootstrapTable.prototype.resetView=function(params){_resetView.apply(this,[params])setTimeout(()=>{// only bootstrap3this.$tableBody.trigger('scroll')},100)}
@wenzhixin I don't think this is correct. You can see from screenshots I've posted on #7090 that the issue also exists on your demo site which, I assume, is using bootstrap 5.
Bootstraptable version(s) affected
1.23.5
Description
Found 2 problems with footer position when scrolling table on Bootstrap 3.
Example(s)
Possible Solutions
To fix the second problem, add these lines at the end of horizontalScroll() function:
Additional Context
Windows 10
Chrome 130
Bootstrap 3
The text was updated successfully, but these errors were encountered: