Getting Started -> Building a Flow -> Adding Nodes: resolve issue that only narrow row/strip is rendered, by using 100vh
parent
ba8ab73716
commit
eb4286d453
|
@ -19,7 +19,7 @@ const nodes = [
|
||||||
|
|
||||||
const Flow = () => {
|
const Flow = () => {
|
||||||
return (
|
return (
|
||||||
<div style={{ height: 100 }}>
|
<div style={{ height: '100vh' }}>
|
||||||
<ReactFlow nodes={nodes}>
|
<ReactFlow nodes={nodes}>
|
||||||
<Background />
|
<Background />
|
||||||
<Controls />
|
<Controls />
|
||||||
|
|
Loading…
Reference in New Issue