@@ -37,6 +37,10 @@ class BootstrapTable extends Component {
37
37
currPage = this . props . options . pageStartIndex ;
38
38
}
39
39
40
+ this . _adjustHeaderWidth = this . _adjustHeaderWidth . bind ( this ) ;
41
+ this . _adjustHeight = this . _adjustHeight . bind ( this ) ;
42
+ this . _adjustTable = this . _adjustTable . bind ( this ) ;
43
+
40
44
this . state = {
41
45
data : this . getTableData ( ) ,
42
46
currPage : currPage ,
@@ -400,7 +404,7 @@ class BootstrapTable extends Component {
400
404
401
405
handleExpandRow = expanding => {
402
406
this . setState ( { expanding } , ( ) => {
403
- this . props . adjustHeaderWidth ( ) ;
407
+ this . _adjustHeaderWidth ( ) ;
404
408
} ) ;
405
409
}
406
410
@@ -950,14 +954,14 @@ class BootstrapTable extends Component {
950
954
this . refs . header . refs . container . scrollLeft = e . currentTarget . scrollLeft ;
951
955
}
952
956
953
- _adjustTable = ( ) => {
957
+ _adjustTable ( ) {
954
958
if ( ! this . props . printable ) {
955
959
this . _adjustHeaderWidth ( ) ;
956
960
}
957
961
this . _adjustHeight ( ) ;
958
962
}
959
963
960
- _adjustHeaderWidth = ( ) => {
964
+ _adjustHeaderWidth ( ) {
961
965
const header = this . refs . header . getHeaderColGrouop ( ) ;
962
966
const headerContainer = this . refs . header . refs . container ;
963
967
const tbody = this . refs . body . refs . tbody ;
@@ -996,7 +1000,7 @@ class BootstrapTable extends Component {
996
1000
}
997
1001
}
998
1002
999
- _adjustHeight = ( ) => {
1003
+ _adjustHeight ( ) {
1000
1004
const { height } = this . props ;
1001
1005
let { maxHeight } = this . props ;
1002
1006
if ( ( typeof height === 'number' && ! isNaN ( height ) ) || height . indexOf ( '%' ) === - 1 ) {
0 commit comments