Skip to content

Commit 76de4be

Browse files
committed
Demo page fix
1 parent bf02163 commit 76de4be

File tree

1 file changed

+17
-15
lines changed
  • src/examples/basicExample

1 file changed

+17
-15
lines changed

src/examples/basicExample/app.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,23 @@ const App = React.createClass({
9898
</span>
9999
<h3>Demo</h3>
100100

101-
<SortableTree
102-
treeData={this.state.treeData}
103-
updateTreeData={treeData => this.setState({ treeData })}
104-
generateNodeProps={({
105-
node: _node,
106-
path: _path,
107-
lowerSiblingCounts: _lowerSiblingCounts,
108-
listIndex: _listIndex,
109-
}) => ({
110-
buttons: [
111-
<button></button>,
112-
<button></button>,
113-
],
114-
})}
115-
/>
101+
<div style={{ height: 500 }}>
102+
<SortableTree
103+
treeData={this.state.treeData}
104+
updateTreeData={treeData => this.setState({ treeData })}
105+
generateNodeProps={({
106+
node: _node,
107+
path: _path,
108+
lowerSiblingCounts: _lowerSiblingCounts,
109+
listIndex: _listIndex,
110+
}) => ({
111+
buttons: [
112+
<button></button>,
113+
<button></button>,
114+
],
115+
})}
116+
/>
117+
</div>
116118

117119
<h3>Features</h3>
118120
<ul>

0 commit comments

Comments
 (0)