-
Notifications
You must be signed in to change notification settings - Fork 173
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
Grandients not working (again?) #46
Comments
It works in the demo. I assume it's because you don't have the gradient defined in your HTML (you can see how it's defined here https://github.com/crisbeto/angular-svg-round-progressbar/blob/master/build/index.html#L133). Can you post your HTML? |
sure thing:
|
Worked for me in all major browsers (http://i.imgur.com/yHWcVSK.png). Maybe something else in your app is messing with it? |
gosh, that is possible. Is there any way i can debug the gradient assignment part in roundProgress.js? |
Well not the cleanest way, but you can try to |
Hmm, it is set correctly: It appears that it's not finding the element .. not sure why. I'll keep testing and report back if I find a solution. Thanks for the assist so far. |
You can try to set the color as |
Thanks, I tried both of those but they failed too. However, I did find that the gradient doesn't work in your /dist/index.html file either. I copied all the files from /dist to my localhost root directory.
to index.html, just before Then loaded the file with http://localhost/index.html and the progressbar gradients did not show. When I load the file as file:///blah/blah/index.hml then it works. |
Well.. that's odd. Going back to the article that I took the gradient example from I can see that I skipped some parts like wrapping the gradient in |
Hmm, i just retried with
still no show. I wonder if it's somehow related to my webserver config. |
It did, in all browsers (event IE9), both with a localhost and just by opening the index.html |
It must be something with my config then, dammit what on earth could it be. |
It didn't happen on the basic connect localhost that's set up in the Grunt file, but it did happen on the Python localhost that I'm using for work. This is pretty strange but at least I have a way of reproducing it now. |
This might be a browser issue, because I tried the example from MDN and the one from the W3C on an empty HTML page (no css, javascript etc.) and the gradient still didn't show up. |
Actually I think I found it. Apparently it breaks if the page has a |
I've pushed a fix for it in 0.3.8, let me know if it works. |
Hi sorry for delayed response. Yes we have |
Awesome, that fixed it. Thank you very much! |
Great, thanks for reporting it. |
Hi there :)
We are using version 0.3.7 and the suggestion listed here #29 is not working.
When we set the color to a solid #F00 it works fine.
Any suggestions?
The text was updated successfully, but these errors were encountered: