-
Notifications
You must be signed in to change notification settings - Fork 311
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
Setting the circle to 100% width and height of parent element #17
Comments
Well, it's possible. Here is an exemple. I'd like to explain the principle. You should set maximum possible $('#circle').circleProgress({
size: 1000
}); After that, in CSS you should set width and height to be flexible, e.g.: #circle canvas {
max-width: 100%;
max-height: 100%;
} Now |
i put it in a div with responsive size and used jquery width function to set the size in the initialization. worked great! |
FYI, currently the documentation points to this issue, however the comment above references an example which is no longer working (this longer exists). Perhaps instead this example could be incorporated into the repository and hosted on Github Pages so it's more permanent? This is definitely an interesting point that has a lot of demand. |
Actually, found a working version of the link here: http://output.jsbin.com/gabeli/ |
Hi, @patricknelson! I'm glad that you've solved the problem by yourself, good job! ;) Yes, some examples may become broken, and that's a bit of a risk. It'd be great to keep them inside project's code/docs. But to create full featured project docs, I need a lot of time. |
Would be great to be able to set a % size. I'd like to set the circle to 100% width and height of parent element.
The text was updated successfully, but these errors were encountered: