It's not possible to set the padding to zero. If you set the padding to zero in PHP, the following line in graphael.jquery.js read it as FALSE and uses the default instead:
params.padding = params.padding || 10;
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 921002_1.patch | 689 bytes | Will White |
Comments
Comment #1
miklAh, the joys of dynamic typing. I’ll get it fixed for the next beta :)
Comment #2
Will White commentedThe solution to this is to expect the padding param as a string. If the string is truly NULL, it uses the default. But if the string has a value (even "0"), it will use that and parse a float from it.
Comment #3
googletorp commentedI've committed the patch into dev, thanx.