react-diagrams icon indicating copy to clipboard operation
react-diagrams copied to clipboard

Need help

Open Andrew-Zn opened this issue 8 years ago • 11 comments

I would like to ask a question in my react projects refer to the library, but I in document examples drawn only three fixed length of the cuboid, width is a screen length, also can't drag! Did I miss anything?

Andrew-Zn avatar Apr 16 '18 15:04 Andrew-Zn

I am a foreign developer, English is not very good, who can instruct me, I will be extremely grateful, the document is too simple.

Andrew-Zn avatar Apr 16 '18 15:04 Andrew-Zn

Can you rephrase "in document examples drawn only three fixed length of the cuboid" or attach an image of your problem?

ajthinking avatar Apr 16 '18 15:04 ajthinking

I'll just copy the example in the demo and run it and get the result

1111

Andrew-Zn avatar Apr 17 '18 02:04 Andrew-Zn

This is most likely a css issue. Can you confirm you have loaded the css properly?

In my case:

@import "~storm-react-diagrams/src/sass/main";

ajthinking avatar Apr 17 '18 05:04 ajthinking

The introduction of CSS would be a blank, and I deleted the "position=relative" under the ".srd-diagram", and the result was this. 222

Andrew-Zn avatar Apr 17 '18 06:04 Andrew-Zn

Ok, that looks good? Not sure about this, but you might want to check your parent div if it got any interfering properties. Good luck!

ajthinking avatar Apr 17 '18 06:04 ajthinking

Thank you for your help.

Andrew-Zn avatar Apr 17 '18 06:04 Andrew-Zn

@Andrew-Zn You need to import style.min.css into your parent div/component then it will work. import 'storm-react-diagrams/dist/style.min.css';

ganesh-sankey avatar Apr 20 '18 05:04 ganesh-sankey

Yes, I did, but the problem is still there, I have to delete it image

Andrew-Zn avatar Apr 20 '18 08:04 Andrew-Zn

It`s Ok,Add a height to the srd-diagram.

Andrew-Zn avatar Apr 23 '18 03:04 Andrew-Zn

On my opinion, its better to set a default height rule to .src-diagram

sjy avatar Apr 24 '18 10:04 sjy