Rich-Harris/svelte-cubed

Canvas visibility/display

DefinitelyMaybe opened this issue · 1 comments

Hey all,

Leaving this one here for future reference.

Currently the Canvas is wrapped in a div for resizing nicely which works great but...
If you wrap a SC.Canvas in a div which has an initial css of display: none; but later that css is removed, the SC.Canvas will not be displayed until the resize function is called.

My current work around is to instead use the visibility: invisible; css which works as expected.

hmm I'm thinking I must've done something strange as can't reproduce this.