{"action":"opened","issue":{"url":"https://api.github.com/repos/konvajs/konva/issues/50","labels_url":"https://api.github.com/repos/konvajs/konva/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/konvajs/konva/issues/50/comments","events_url":"https://api.github.com/repos/konvajs/konva/issues/50/events","html_url":"https://github.com/konvajs/konva/issues/50","id":68219416,"number":50,"title":"getClientRect returns wrong coordinates","user":{"login":"pronebird","id":704044,"avatar_url":"https://avatars.githubusercontent.com/u/704044?v=3","gravatar_id":"","url":"https://api.github.com/users/pronebird","html_url":"https://github.com/pronebird","followers_url":"https://api.github.com/users/pronebird/followers","following_url":"https://api.github.com/users/pronebird/following{/other_user}","gists_url":"https://api.github.com/users/pronebird/gists{/gist_id}","starred_url":"https://api.github.com/users/pronebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pronebird/subscriptions","organizations_url":"https://api.github.com/users/pronebird/orgs","repos_url":"https://api.github.com/users/pronebird/repos","events_url":"https://api.github.com/users/pronebird/events{/privacy}","received_events_url":"https://api.github.com/users/pronebird/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-13T23:36:46Z","updated_at":"2015-04-13T23:36:46Z","closed_at":null,"body":"I have the following layout:\r\n\r\n* Group { x: 444.6, y: 339, width: 90.8, height: 36 }\r\n  * Shape { x: 0, y: 0, width: 91, height: 39.6 }\r\n  * Text { x: 15, y: 8, width: 50, height: 20 }\r\n\r\nShape has a custom shadow that's why it's height is a little bit larger than the parent group, neglect it. This shape implements getClientRect:\r\n\r\n```js\r\ngetClientRect: function () {\r\n  var rect = Konva.Shape.prototype.getClientRect.apply(this, arguments);\r\n  rect.height += this.shadeOffset();\r\n  return rect;\r\n}\r\n```\r\n\r\nHowever clientRect returned for group is:\r\n\r\n```\r\nx: 460, y: 347, width: 76, height: 32\r\n```\r\n\r\nthis matches text's top left corner which is wrong, I guess getClientRect should take group's position into consideration."}}