Skip to content

Commit

Permalink
fix #155
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Nov 27, 2015
1 parent b017b49 commit 8a6b9b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class TableBody extends React.Component{
selectRowHeader = this.props.selectRow.hideSelectColumn?null:(<th style={style} key={-1}></th>);
}
var theader = this.props.columns.map(function(column, i){
let width = parseInt(column.width);
let width = column.width == null?column.width:parseInt(column.width);
let style={
display: column.hidden?"none":null,
width: width,
Expand Down
3 changes: 2 additions & 1 deletion src/TableColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class TableColumn extends React.Component{
}

render(){
var width = parseInt(this.props.width);
var width = this.props.width == null?
this.props.width:parseInt(this.props.width);
var tdStyle = {
textAlign: this.props.dataAlign,
display: this.props.hidden?"none":null,
Expand Down

0 comments on commit 8a6b9b0

Please sign in to comment.