Skip to content

Commit

Permalink
fix header adjust margin according to scrollbar, from #201
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Jan 7, 2016
1 parent baa8b1a commit fa2c827
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,17 @@ class TableHeader extends React.Component{
this._attachClearSortCaretFunc();

return(
<div ref="container" className={containerClasses}>
<table className={tableClasses}>
<thead>
<tr ref="header">
{selectRowHeaderCol}
{this.props.children}
</tr>
</thead>
</table>
<div className="table-header-wrapper">
<div ref="container" className={containerClasses}>
<table className={tableClasses}>
<thead>
<tr ref="header">
{selectRowHeaderCol}
{this.props.children}
</tr>
</thead>
</table>
</div>
</div>
)
}
Expand Down

0 comments on commit fa2c827

Please sign in to comment.