浏览代码

fix #4122: Fix horizontal scrollbar bug

zhixin 7 年之前
父节点
当前提交
ca2d1fb154
共有 2 个文件被更改,包括 2 次插入2 次删除
  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')