Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas collapse when init with a display-none wrapper #1311

Closed
Huxpro opened this issue Jul 15, 2015 · 1 comment
Closed

Canvas collapse when init with a display-none wrapper #1311

Huxpro opened this issue Jul 15, 2015 · 1 comment

Comments

@Huxpro
Copy link

Huxpro commented Jul 15, 2015

just change some code in the sample/bar.html

<div style="display: none;">
    <canvas id="canvas" height="450" width="600"></canvas>
</div>

the canvas will be set to height="0" and never back. (set back to display: block later)
even if I drag window to trigger re-calculate, the width response but height still 0.

@etimberg
Copy link
Member

Duplicate of #762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants