Blazor-Diagrams / Blazor.Diagrams

A fully customizable and extensible all-purpose diagrams library for Blazor
https://blazor-diagrams.zhaytam.com
MIT License
919 stars 176 forks source link

Documentation Instructions Not Working? #260

Closed AlmightyLks closed 1 year ago

AlmightyLks commented 1 year ago

Trying to follow the Quick Start from the docs.

For whatever reason it's not working for me? Am I overlooking something?

Repo: https://github.com/AlmightyLks/ForkHierarchy Commit of interest: https://github.com/AlmightyLks/ForkHierarchy/commit/f973326321efb9f886c8b89723c0884959624bb8

AlmightyLks commented 1 year ago

Nevermind: As the warning states

Pay attention When adding a DiagramCanvas, its parent needs to have an actual width/height, since all the layers in Blazor.Diagrams use width: 100%; height: 100% for them to be able to work properly.

I needed to add a width and height with a specific vh / vw. I tried this already with a fixed px amount, but that didnt work either, so I assumed things didn't work out, even when setting that.

Cheers :)