File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class BootstrapTable extends Component {
23
23
this . isIE = document . documentMode ;
24
24
}
25
25
this . store = new TableDataStore ( this . props . data ? this . props . data . slice ( ) : [ ] ) ;
26
-
26
+ this . isVerticalScroll = false ;
27
27
this . initTable ( this . props ) ;
28
28
29
29
if ( this . props . selectRow && this . props . selectRow . selected ) {
@@ -1152,7 +1152,7 @@ class BootstrapTable extends Component {
1152
1152
1153
1153
const scrollBarWidth = isScroll ? Util . getScrollBarWidth ( ) : 0 ;
1154
1154
if ( firstRow && this . store . getDataNum ( ) ) {
1155
- if ( isScroll ) {
1155
+ if ( isScroll || this . isVerticalScroll !== isScroll ) {
1156
1156
const cells = firstRow . childNodes ;
1157
1157
for ( let i = 0 ; i < cells . length ; i ++ ) {
1158
1158
const cell = cells [ i ] ;
@@ -1190,6 +1190,7 @@ class BootstrapTable extends Component {
1190
1190
}
1191
1191
} ) ;
1192
1192
}
1193
+ this . isVerticalScroll = isScroll ;
1193
1194
}
1194
1195
1195
1196
_adjustHeight ( ) {
You can’t perform that action at this time.
0 commit comments