{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1482","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1482/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1482/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1482/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1482","id":131020881,"number":1482,"title":"Nativescript AbsoluteLayout not refresh layout childs on device orientation change","user":{"login":"baromir","id":12832002,"avatar_url":"https://avatars.githubusercontent.com/u/12832002?v=3","gravatar_id":"","url":"https://api.github.com/users/baromir","html_url":"https://github.com/baromir","followers_url":"https://api.github.com/users/baromir/followers","following_url":"https://api.github.com/users/baromir/following{/other_user}","gists_url":"https://api.github.com/users/baromir/gists{/gist_id}","starred_url":"https://api.github.com/users/baromir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baromir/subscriptions","organizations_url":"https://api.github.com/users/baromir/orgs","repos_url":"https://api.github.com/users/baromir/repos","events_url":"https://api.github.com/users/baromir/events{/privacy}","received_events_url":"https://api.github.com/users/baromir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-03T13:12:04Z","updated_at":"2016-02-10T14:01:47Z","closed_at":"2016-02-10T10:17:58Z","body":"I am build a application that need put a transparent iOS status bar  and a map behind. to do this I am using a Nativescript AbsoluteLayout. Y add the view to the absolute layout and all working as expected the problems is when the device orientation change. the childs off the absolute layout not refresh their dimension.\r\n\r\ninit orientation:.\r\n![screen shot 2016-02-01 at 8 08 54 am](https://cloud.githubusercontent.com/assets/12832002/12782396/14dc8ca0-ca49-11e5-887b-a6c905cd58a1.png)\r\n\r\nafter orientation change:\r\n![screen shot 2016-02-01 at 8 10 56 am](https://cloud.githubusercontent.com/assets/12832002/12782409/2ae5fa5e-ca49-11e5-88c5-300c6acce869.png)\r\n\r\nattached protect for test\r\n[absLayoutTest.zip](https://github.com/NativeScript/NativeScript/files/115675/absLayoutTest.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/182387808","html_url":"https://github.com/NativeScript/NativeScript/issues/1482#issuecomment-182387808","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1482","id":182387808,"user":{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T14:01:47Z","updated_at":"2016-02-10T14:01:47Z","body":"I would suggest you check the API reference documentation about our application module. The \"application\" module exposes a cross platform orientation changed event.\r\n\r\nSomething like this should work:\r\n``` JavaScript\r\nvar application = require(\"application\");\r\napplication.on(application.orientationChangedEvent, function(args) {\r\n    console.log(args.newValue);\r\n});\r\n```"}}