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

CanvasSpace does not set its size #13

Open
mrgreenh opened this issue Jun 2, 2016 · 1 comment
Open

CanvasSpace does not set its size #13

mrgreenh opened this issue Jun 2, 2016 · 1 comment
Labels

Comments

@mrgreenh
Copy link
Collaborator

mrgreenh commented Jun 2, 2016

When initializing a CanvasSpace on a container that already contains a canvas, the size attribute of the CanvasSpace instance does not get updated with the canvas element's size, resulting in empty renderings. This case should be supported according to documentation ("an id property which refers to the "id" attribute of the canvas element in DOM. If no canvas element with this id is found, a new canvas element will be created."). I'd also see dropping this use case from the docs as a quicker solution.

@williamngan williamngan added the bug label Jun 2, 2016
@williamngan
Copy link
Owner

Pt 0.2 has now a new constructor for CanvasSpace and SVGSpace. This will now support existing . Thanks for reporting!
http://williamngan.github.io/pt/docs/guide/migration.html

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

No branches or pull requests

2 participants