Browse Source

fix #4122: Fix horizontal scrollbar bug

zhixin 7 years ago
parent
commit
ca2d1fb154
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/bootstrap-table.css
  2. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.css

@@ -306,7 +306,7 @@
 }
 
 /* calculate scrollbar width */
-p.fixed-table-scroll-inner {
+div.fixed-table-scroll-inner {
     width: 100%;
     height: 200px;
 }

+ 1 - 1
src/bootstrap-table.js

@@ -141,7 +141,7 @@
     },
 
     getScrollBarWidth () {
-      if (this.cachedWidth === null) {
+      if (this.cachedWidth === undefined) {
         const $inner = $('<div/>').addClass('fixed-table-scroll-inner')
         const $outer = $('<div/>').addClass('fixed-table-scroll-outer')