{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/2693","labels_url":"https://api.github.com/repos/kivy/kivy/issues/2693/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/2693/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/2693/events","html_url":"https://github.com/kivy/kivy/issues/2693","id":49629458,"number":2693,"title":"Scale() should have an origin property","user":{"login":"sbrother","id":1652291,"avatar_url":"https://avatars.githubusercontent.com/u/1652291?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrother","html_url":"https://github.com/sbrother","followers_url":"https://api.github.com/users/sbrother/followers","following_url":"https://api.github.com/users/sbrother/following{/other_user}","gists_url":"https://api.github.com/users/sbrother/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrother/subscriptions","organizations_url":"https://api.github.com/users/sbrother/orgs","repos_url":"https://api.github.com/users/sbrother/repos","events_url":"https://api.github.com/users/sbrother/events{/privacy}","received_events_url":"https://api.github.com/users/sbrother/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/feature","name":"feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/kivy/kivy/labels/graphics","name":"graphics","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kivy/kivy/milestones/25","html_url":"https://github.com/kivy/kivy/milestones/1.9.1","labels_url":"https://api.github.com/repos/kivy/kivy/milestones/25/labels","id":741176,"number":25,"title":"1.9.1","description":null,"creator":{"login":"akshayaurora","id":788023,"avatar_url":"https://avatars.githubusercontent.com/u/788023?v=3","gravatar_id":"","url":"https://api.github.com/users/akshayaurora","html_url":"https://github.com/akshayaurora","followers_url":"https://api.github.com/users/akshayaurora/followers","following_url":"https://api.github.com/users/akshayaurora/following{/other_user}","gists_url":"https://api.github.com/users/akshayaurora/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayaurora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayaurora/subscriptions","organizations_url":"https://api.github.com/users/akshayaurora/orgs","repos_url":"https://api.github.com/users/akshayaurora/repos","events_url":"https://api.github.com/users/akshayaurora/events{/privacy}","received_events_url":"https://api.github.com/users/akshayaurora/received_events","type":"User","site_admin":false},"open_issues":62,"closed_issues":10,"state":"open","created_at":"2014-08-03T19:04:24Z","updated_at":"2015-02-26T13:53:20Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-11-20T22:52:31Z","updated_at":"2015-02-26T16:36:22Z","closed_at":null,"body":"Rotate() now supports an origin property, allowing rotations around an arbitrary origin. Scale does not, only supporting scaling around the lower left of the canvas. This means that to achieve control over scaling a widget, you need to wrap Scale in two Translate commands. It would be nice if Scale also had an origin property to avoid this.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6387623-scale-should-have-an-origin-property?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/76211621","html_url":"https://github.com/kivy/kivy/issues/2693#issuecomment-76211621","issue_url":"https://api.github.com/repos/kivy/kivy/issues/2693","id":76211621,"user":{"login":"hey-sancho","id":1079585,"avatar_url":"https://avatars.githubusercontent.com/u/1079585?v=3","gravatar_id":"","url":"https://api.github.com/users/hey-sancho","html_url":"https://github.com/hey-sancho","followers_url":"https://api.github.com/users/hey-sancho/followers","following_url":"https://api.github.com/users/hey-sancho/following{/other_user}","gists_url":"https://api.github.com/users/hey-sancho/gists{/gist_id}","starred_url":"https://api.github.com/users/hey-sancho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hey-sancho/subscriptions","organizations_url":"https://api.github.com/users/hey-sancho/orgs","repos_url":"https://api.github.com/users/hey-sancho/repos","events_url":"https://api.github.com/users/hey-sancho/events{/privacy}","received_events_url":"https://api.github.com/users/hey-sancho/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T16:36:22Z","updated_at":"2015-02-26T16:36:22Z","body":"Here's my try at fixing this:\r\nhttps://gist.github.com/hey-sancho/b131a6d02d9f15838beb\r\n\r\nTried to do the same way as in `Rotate` - everything uses `compute()` function, which translates and scales the object. Rewritten `set_scale()` to work via `compute()`, but i guess it could become deprecated as the `Rotate.set`.\r\n\r\n@rastogiachyut, I don't know what result did you get, but my version makes your code look like this:\r\n![screenshot - 26 02 15 - 18 27 31](https://cloud.githubusercontent.com/assets/1079585/6396144/7d6ba146-bde5-11e4-93f0-2f8a6b3c4958.png)\r\n"}}