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

100% canvasWidth #146

Open
dlednik opened this issue Nov 12, 2017 · 1 comment
Open

100% canvasWidth #146

dlednik opened this issue Nov 12, 2017 · 1 comment

Comments

@dlednik
Copy link

dlednik commented Nov 12, 2017

Is there a way for canvas to fill the drawing area?

Is something like this possible:

"size": {"canvasWidth": "100%"}

Problem I have is that it's not rendered the same at different resolutions. I would expect SVG to fill the drawing area automatically.

@RELNO
Copy link

RELNO commented Dec 7, 2017

I'm using this to occupy full containing Div area:

"size": { "canvasHeight": document.getElementById("divName").offsetHeight, "canvasWidth": document.getElementById("divName").offsetWidth, ... },

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