Skip to content

Commit

Permalink
fix(GitTreeWidget): Add style property to the react widget
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 26, 2016
1 parent 4084643 commit 82e59f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/React/Widgets/GitTreeWidget/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default React.createClass({
React.PropTypes.instanceOf(null), //this could have some problematic effect
]),
stroke: React.PropTypes.number,
style: React.PropTypes.object,
textColor: React.PropTypes.array,
textWeight: React.PropTypes.array,
width: React.PropTypes.oneOfType([
Expand All @@ -143,6 +144,7 @@ export default React.createClass({
return {
nodes: [],
actives: [],
style: {},

enableDelete: false,
deltaX: 20,
Expand Down Expand Up @@ -390,7 +392,7 @@ export default React.createClass({

render() {
return (
<svg width={this.props.width} height={this.props.deltaY * this.state.nodes.length + 'px'} onClick={ this.toggleActive }>
<svg style={this.props.style} width={this.props.width} height={this.props.deltaY * this.state.nodes.length + 'px'} onClick={ this.toggleActive }>
{ this.renderActives() }
{ this.renderBranches() }
{ this.renderForks() }
Expand Down

0 comments on commit 82e59f8

Please sign in to comment.