File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1271,13 +1271,17 @@ class BootstrapTable extends Component {
12711271 }
12721272 }
12731273 } else {
1274- // debugger;
1275- React . Children . forEach ( this . props . children , ( child , i ) => {
1276- if ( child && child . props . width ) {
1277- header [ i ] . style . width = `${ child . props . width } px` ;
1278- header [ i ] . style . minWidth = `${ child . props . width } px` ;
1274+ for ( const i in bodyHeader ) {
1275+ if ( bodyHeader . hasOwnProperty ( i ) ) {
1276+ const child = bodyHeader [ i ] ;
1277+ if ( child . style . width ) {
1278+ header [ i ] . style . width = child . style . width ;
1279+ }
1280+ if ( child . style . minWidth ) {
1281+ header [ i ] . style . minWidth = child . style . minWidth ;
1282+ }
12791283 }
1280- } ) ;
1284+ }
12811285 }
12821286 this . isVerticalScroll = isScroll ;
12831287 }
You can’t perform that action at this time.
0 commit comments