Skip to content

Commit

Permalink
fix #623
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Aug 13, 2016
1 parent 0e2b1f2 commit 9172656
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/BootstrapTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,14 @@ class BootstrapTable extends Component {
header.childNodes[i].style.width = result;
header.childNodes[i].style.minWidth = result;
}
} else {
React.Children.forEach(this.props.children, (child, i) => {
if (child.props.width) {
console.log('yayay');
header.childNodes[i].style.width = `${child.props.width}px`;
header.childNodes[i].style.minWidth = `${child.props.width}px`;
}
});
}
}

Expand Down

0 comments on commit 9172656

Please sign in to comment.