woodenconsulting / react-js-diagrams

A flow based diagramming library written in React
MIT License
220 stars 61 forks source link

DiagramWidget doesn't render after wrap in div #19

Closed Koli96 closed 6 years ago

Koli96 commented 6 years ago

Hello. I have a problem with DiagramWidget. When I'm trying to wrap it in div it doesn't render. Code like this works: return(<RJD.DiagramWidget diagramEngine={diagramEngine} />);

but when I trying to add e.g. navbar, and I need to wrap it in any div my diagram doesn't render.

return(<div><RJD.DiagramWidget diagramEngine={diagramEngine} /></div>);

What I'm doing wrong? Thank from advance for your help!

Koli96 commented 6 years ago

Ok, I know what was wrong. It was about CSS, which I have copied from demo4 and display: flex.