{"action":"created","issue":{"url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/14","labels_url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/14/comments","events_url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/14/events","html_url":"https://github.com/lzyzsd/CircleProgress/issues/14","id":59195940,"number":14,"title":"DonutProgress draw arc wrongly.","user":{"login":"taoliuh","id":3491083,"avatar_url":"https://avatars.githubusercontent.com/u/3491083?v=3","gravatar_id":"","url":"https://api.github.com/users/taoliuh","html_url":"https://github.com/taoliuh","followers_url":"https://api.github.com/users/taoliuh/followers","following_url":"https://api.github.com/users/taoliuh/following{/other_user}","gists_url":"https://api.github.com/users/taoliuh/gists{/gist_id}","starred_url":"https://api.github.com/users/taoliuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taoliuh/subscriptions","organizations_url":"https://api.github.com/users/taoliuh/orgs","repos_url":"https://api.github.com/users/taoliuh/repos","events_url":"https://api.github.com/users/taoliuh/events{/privacy}","received_events_url":"https://api.github.com/users/taoliuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-27T06:18:17Z","updated_at":"2015-02-27T06:46:33Z","closed_at":null,"body":"![screenshot_2015-02-27-13-57-24](https://cloud.githubusercontent.com/assets/3491083/6408129/eb5cd42e-be88-11e4-8b7d-77800af04cc0.png)\r\nAs the image above , \r\n```\r\n     if (finishedStrokeWidth > unfinishedStrokeWidth) {\r\n            finishedOuterRect.set(finishedStrokeWidth / 2,\r\n                finishedStrokeWidth / 2,\r\n                getWidth() - finishedStrokeWidth / 2,\r\n                getHeight() - finishedStrokeWidth / 2);\r\n            float delta = (finishedStrokeWidth - unfinishedStrokeWidth) / 2f;\r\n            unfinishedOuterRect.set(unfinishedStrokeWidth / 2,\r\n                unfinishedStrokeWidth / 2,\r\n                getWidth() - unfinishedStrokeWidth / 2 - delta,\r\n                getHeight() - unfinishedStrokeWidth / 2 - delta);\r\n        } else {\r\n            float delta = (unfinishedStrokeWidth - finishedStrokeWidth) / 2f;\r\n            finishedOuterRect.set(finishedStrokeWidth / 2,\r\n                finishedStrokeWidth / 2,\r\n                getWidth() - finishedStrokeWidth / 2 - delta,\r\n                getHeight() - finishedStrokeWidth / 2 - delta);\r\n            unfinishedOuterRect.set(unfinishedStrokeWidth / 2,\r\n                unfinishedStrokeWidth / 2,\r\n                getWidth() - unfinishedStrokeWidth / 2,\r\n                getHeight() - unfinishedStrokeWidth / 2);\r\n        }\r\n\r\nI modified so it would like this:\r\n```\r\n        float delta = Math.max(finishedStrokeWidth, unfinishedStrokeWidth);\r\n        finishedOuterRect.set(delta,\r\n                delta,\r\n                getWidth() - delta,\r\n                getHeight() - delta);\r\n        unfinishedOuterRect.set(delta,\r\n                delta,\r\n                getWidth() - delta,\r\n                getHeight() - delta);\r\n![screenshot_2015-02-27-14-06-14](https://cloud.githubusercontent.com/assets/3491083/6408182/2941fb10-be8a-11e4-9051-9302be8c7d1e.png)\r\n\r\nthe problem resolved, and I commited a PR."},"comment":{"url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/comments/76347248","html_url":"https://github.com/lzyzsd/CircleProgress/issues/14#issuecomment-76347248","issue_url":"https://api.github.com/repos/lzyzsd/CircleProgress/issues/14","id":76347248,"user":{"login":"lzyzsd","id":212984,"avatar_url":"https://avatars.githubusercontent.com/u/212984?v=3","gravatar_id":"","url":"https://api.github.com/users/lzyzsd","html_url":"https://github.com/lzyzsd","followers_url":"https://api.github.com/users/lzyzsd/followers","following_url":"https://api.github.com/users/lzyzsd/following{/other_user}","gists_url":"https://api.github.com/users/lzyzsd/gists{/gist_id}","starred_url":"https://api.github.com/users/lzyzsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzyzsd/subscriptions","organizations_url":"https://api.github.com/users/lzyzsd/orgs","repos_url":"https://api.github.com/users/lzyzsd/repos","events_url":"https://api.github.com/users/lzyzsd/events{/privacy}","received_events_url":"https://api.github.com/users/lzyzsd/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T06:46:33Z","updated_at":"2015-02-27T06:46:33Z","body":"thanks, but I did not receive your PR, do you forget it?"}}