{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/4160","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/4160/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/4160/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/4160/events","html_url":"https://github.com/kivy/kivy/issues/4160","id":146727281,"number":4160,"title":"center_x and center_y only get updated after window resize","user":{"login":"redfast00","id":10746993,"avatar_url":"https://avatars.githubusercontent.com/u/10746993?v=3","gravatar_id":"","url":"https://api.github.com/users/redfast00","html_url":"https://github.com/redfast00","followers_url":"https://api.github.com/users/redfast00/followers","following_url":"https://api.github.com/users/redfast00/following{/other_user}","gists_url":"https://api.github.com/users/redfast00/gists{/gist_id}","starred_url":"https://api.github.com/users/redfast00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redfast00/subscriptions","organizations_url":"https://api.github.com/users/redfast00/orgs","repos_url":"https://api.github.com/users/redfast00/repos","events_url":"https://api.github.com/users/redfast00/events{/privacy}","received_events_url":"https://api.github.com/users/redfast00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/documentation","name":"documentation","color":"fafa44"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kivy/kivy/milestones/26","html_url":"https://github.com/kivy/kivy/milestones/2.0.0","labels_url":"https://api.github.com/repos/kivy/kivy/milestones/26/labels","id":1075858,"number":26,"title":"2.0.0","description":"","creator":{"login":"dessant","id":7513068,"avatar_url":"https://avatars.githubusercontent.com/u/7513068?v=3","gravatar_id":"","url":"https://api.github.com/users/dessant","html_url":"https://github.com/dessant","followers_url":"https://api.github.com/users/dessant/followers","following_url":"https://api.github.com/users/dessant/following{/other_user}","gists_url":"https://api.github.com/users/dessant/gists{/gist_id}","starred_url":"https://api.github.com/users/dessant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dessant/subscriptions","organizations_url":"https://api.github.com/users/dessant/orgs","repos_url":"https://api.github.com/users/dessant/repos","events_url":"https://api.github.com/users/dessant/events{/privacy}","received_events_url":"https://api.github.com/users/dessant/received_events","type":"User","site_admin":false},"open_issues":128,"closed_issues":38,"state":"open","created_at":"2015-04-20T19:06:41Z","updated_at":"2016-04-07T23:34:59Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-04-07T19:59:33Z","updated_at":"2016-04-07T23:37:18Z","closed_at":"2016-04-07T23:34:59Z","body":"Expected behaviour: image is centered within the button\r\nActual behaviour: image only gets centered when the window is resized.\r\nCode:\r\n```python\r\n<TreasureStartScreen>:\r\n    name: 'TreasureStartScreen'\r\n    Button:\r\n        Image:\r\n            source: 'data/clover.png'\r\n            center_x: self.parent.center_x\r\n            center_y: self.parent.center_y\r\n            size: self.parent.height / 2, self.parent.height / 2\r\n```"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/207137748","html_url":"https://github.com/kivy/kivy/issues/4160#issuecomment-207137748","issue_url":"https://api.github.com/repos/kivy/kivy/issues/4160","id":207137748,"user":{"login":"tito","id":37904,"avatar_url":"https://avatars.githubusercontent.com/u/37904?v=3","gravatar_id":"","url":"https://api.github.com/users/tito","html_url":"https://github.com/tito","followers_url":"https://api.github.com/users/tito/followers","following_url":"https://api.github.com/users/tito/following{/other_user}","gists_url":"https://api.github.com/users/tito/gists{/gist_id}","starred_url":"https://api.github.com/users/tito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tito/subscriptions","organizations_url":"https://api.github.com/users/tito/orgs","repos_url":"https://api.github.com/users/tito/repos","events_url":"https://api.github.com/users/tito/events{/privacy}","received_events_url":"https://api.github.com/users/tito/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T23:37:18Z","updated_at":"2016-04-07T23:37:18Z","body":"@redfast00 This part of the documentation explain your issue: https://kivy.org/docs/api-kivy.uix.widget.html#usage-of-widget-center-widget-right-and-widget-top "}}