{"action":"created","issue":{"url":"https://api.github.com/repos/gameclosure/devkit2/issues/98","labels_url":"https://api.github.com/repos/gameclosure/devkit2/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/gameclosure/devkit2/issues/98/comments","events_url":"https://api.github.com/repos/gameclosure/devkit2/issues/98/events","html_url":"https://github.com/gameclosure/devkit2/issues/98","id":55131803,"number":98,"title":"centerAnchor is not working.","user":{"login":"jishnu7","id":321335,"avatar_url":"https://avatars.githubusercontent.com/u/321335?v=3","gravatar_id":"","url":"https://api.github.com/users/jishnu7","html_url":"https://github.com/jishnu7","followers_url":"https://api.github.com/users/jishnu7/followers","following_url":"https://api.github.com/users/jishnu7/following{/other_user}","gists_url":"https://api.github.com/users/jishnu7/gists{/gist_id}","starred_url":"https://api.github.com/users/jishnu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jishnu7/subscriptions","organizations_url":"https://api.github.com/users/jishnu7/orgs","repos_url":"https://api.github.com/users/jishnu7/repos","events_url":"https://api.github.com/users/jishnu7/events{/privacy}","received_events_url":"https://api.github.com/users/jishnu7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gameclosure/devkit2/labels/Android","name":"Android","color":"5319e7"},{"url":"https://api.github.com/repos/gameclosure/devkit2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gameclosure/devkit2/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/gameclosure/devkit2/labels/iOS","name":"iOS","color":"fbca04"},{"url":"https://api.github.com/repos/gameclosure/devkit2/labels/Simulator","name":"Simulator","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-22T09:32:20Z","updated_at":"2015-01-23T06:54:47Z","closed_at":null,"body":"centerAnchor supposed to recenter the view on dimension change. But, manually specifying anchorX and anchorY works fine.\r\n\r\ncode to reproduce the issue.\r\n```javascript\r\nimport ui.View as View;\r\nimport animate\r\n\r\nexports = Class(GC.Application, function () {\r\n  this.initUI = function () {\r\n    var view = new View({\r\n      superview: this.view,\r\n      backgroundColor: \"white\",\r\n      layout: 'box',\r\n      x: 100,\r\n      y: 100,\r\n      width: 100,\r\n      height: 100,\r\n      centerAnchor: true\r\n    });\r\n\r\n    setInterval(function () {\r\n      animate(view).then({\r\n        height: 200,\r\n        width: 200\r\n      }, 1000).then({\r\n        height: 50,\r\n        width: 50\r\n      }, 1000);\r\n    }, 2000);\r\n  };\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/gameclosure/devkit2/issues/comments/71154620","html_url":"https://github.com/gameclosure/devkit2/issues/98#issuecomment-71154620","issue_url":"https://api.github.com/repos/gameclosure/devkit2/issues/98","id":71154620,"user":{"login":"jishnu7","id":321335,"avatar_url":"https://avatars.githubusercontent.com/u/321335?v=3","gravatar_id":"","url":"https://api.github.com/users/jishnu7","html_url":"https://github.com/jishnu7","followers_url":"https://api.github.com/users/jishnu7/followers","following_url":"https://api.github.com/users/jishnu7/following{/other_user}","gists_url":"https://api.github.com/users/jishnu7/gists{/gist_id}","starred_url":"https://api.github.com/users/jishnu7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jishnu7/subscriptions","organizations_url":"https://api.github.com/users/jishnu7/orgs","repos_url":"https://api.github.com/users/jishnu7/repos","events_url":"https://api.github.com/users/jishnu7/events{/privacy}","received_events_url":"https://api.github.com/users/jishnu7/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T06:54:47Z","updated_at":"2015-01-23T06:54:47Z","body":"Added back and sent a PR \r\nhttps://github.com/gameclosure/timestep/pull/39\r\n\r\n"}}