Browse Source

Fix zoom header width bug

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

+ 2 - 1
src/bootstrap-table.js

@@ -2230,7 +2230,8 @@
                 $th = $($ths[$this[0].cellIndex]);
                 $th = $($ths[$this[0].cellIndex]);
             }
             }
 
 
-            $th.find('.fht-cell').width($this.innerWidth());
+            var zoomWidth = $th.width() - $th.find('.fht-cell').width();
+            $th.find('.fht-cell').width($this.innerWidth() - zoomWidth);
         });
         });
 
 
         this.horizontalScroll();
         this.horizontalScroll();