artem-mangilev / ngx-vflow

An open source library to build node-based UI with Angular 16+
https://www.ngx-vflow.org/
MIT License
155 stars 10 forks source link

Size is not reflected correctly when used with “@angular/material”. #87

Closed takevox closed 2 weeks ago

takevox commented 2 months ago

When used with “@angular/material”, even if is written, the width and height of the internal svg element is set to “0” and is not displayed correctly.

When clicked, the width and height change to “100%” and are displayed correctly, but is there any way to avoid the width and height of the svg element being set to “0” in the initial view?

artem-mangilev commented 2 months ago

Hi! Could you please provide a stackblitz example for me to easily identify how to fix this?

takevox commented 2 months ago

How about this?

https://github.com/takevox/materialtest

artem-mangilev commented 2 months ago

It's fine, I'll run in locally, thanks.

artem-mangilev commented 1 month ago

@takevox fixed in 0.13.0-0

takevox commented 1 month ago

Thank you.

I will try the 0.13.0 branch.

takevox commented 2 weeks ago

I tried it with https://github.com/artem-mangilev/ngx-vflow/commit/b12a70eb73b4ccb74fd2f88122d3b35846010867 and it worked!

Thanks!

artem-mangilev commented 2 weeks ago

Great! I'll publish a 0.13.0 with this fix today or tomorrow

takevox commented 2 weeks ago

I have updated to 0.13.0 on my project and can confirm that the problem has been resolved! Thanks for a great product!

artem-mangilev commented 2 weeks ago

Thanks for a great product!

Thank you! So I'm closing the issue