Fabric canvas is not rendering if its inside a div that being hidden by ngIf condition #6899
Unanswered
Huyjoon1995
asked this question in
Q&A
Replies: 2 comments
-
I have zero expertise with angular, i do not know the syntax. |
Beta Was this translation helpful? Give feedback.
0 replies
-
regular html tag is fine but when i debug this situation only the upper canvas show not the lower canvas. The ngIf is just basically hide the canvas it’s only show if you click a button. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently using fabric in angular project. I want to display a canvas on click of a button so I hided canvas inside a div and only show it if the button being clicked. But when the button being clicked the canvas does not show up on the browser at all. Below is the link to see the problem:
https://codesandbox.io/s/quizzical-mclaren-ivnoz?file=/src/app/app.component.html
Any suggestion of how to fix this issue ?
Beta Was this translation helpful? Give feedback.
All reactions