{"action":"created","issue":{"url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/36","labels_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/36/comments","events_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/36/events","html_url":"https://github.com/MyToolkit/MyToolkit/issues/36","id":123517780,"number":36,"title":"Incorrect changes visible bounds for UWP","user":{"login":"asd4059","id":13944294,"avatar_url":"https://avatars.githubusercontent.com/u/13944294?v=3","gravatar_id":"","url":"https://api.github.com/users/asd4059","html_url":"https://github.com/asd4059","followers_url":"https://api.github.com/users/asd4059/followers","following_url":"https://api.github.com/users/asd4059/following{/other_user}","gists_url":"https://api.github.com/users/asd4059/gists{/gist_id}","starred_url":"https://api.github.com/users/asd4059/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asd4059/subscriptions","organizations_url":"https://api.github.com/users/asd4059/orgs","repos_url":"https://api.github.com/users/asd4059/repos","events_url":"https://api.github.com/users/asd4059/events{/privacy}","received_events_url":"https://api.github.com/users/asd4059/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-22T16:55:23Z","updated_at":"2015-12-23T01:40:30Z","closed_at":null,"body":"To make it visible system tray on mobile devices\r\n\r\nNeed to replace: (MyToolkit/src/MyToolkit.Extended.Uwp/UI/ApplicationViewUtilities.cs)\r\n```\r\nprivate static void OnVisibleBoundsChanged(FrameworkElement rootElement)\r\n        {\r\n            var visibleBound = ApplicationView.GetForCurrentView().VisibleBounds;\r\n            var windowHeight = Window.Current.Bounds.Height;\r\n\r\n            var difference = Math.Ceiling(windowHeight - visibleBound.Height);\r\n            rootElement.Margin = new Thickness(0, 0, 0, difference);\r\n        }\r\n```\r\nOn:\r\n```\r\nprivate static void OnVisibleBoundsChanged(FrameworkElement rootElement)\r\n        {\r\n            var visibleBound = ApplicationView.GetForCurrentView().VisibleBounds;\r\n            var windowBound = Window.Current.Bounds;\r\n\r\n            var top = Math.Ceiling(visibleBound.Top - windowBound.Top);\r\n            var bottom = Math.Ceiling(windowBound.Bottom - visibleBound.Bottom);\r\n\r\n            rootElement.Margin = new Thickness(0, top, 0, bottom);\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/comments/166774556","html_url":"https://github.com/MyToolkit/MyToolkit/issues/36#issuecomment-166774556","issue_url":"https://api.github.com/repos/MyToolkit/MyToolkit/issues/36","id":166774556,"user":{"login":"rsuter","id":2603405,"avatar_url":"https://avatars.githubusercontent.com/u/2603405?v=3","gravatar_id":"","url":"https://api.github.com/users/rsuter","html_url":"https://github.com/rsuter","followers_url":"https://api.github.com/users/rsuter/followers","following_url":"https://api.github.com/users/rsuter/following{/other_user}","gists_url":"https://api.github.com/users/rsuter/gists{/gist_id}","starred_url":"https://api.github.com/users/rsuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsuter/subscriptions","organizations_url":"https://api.github.com/users/rsuter/orgs","repos_url":"https://api.github.com/users/rsuter/repos","events_url":"https://api.github.com/users/rsuter/events{/privacy}","received_events_url":"https://api.github.com/users/rsuter/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T01:40:30Z","updated_at":"2015-12-23T01:40:30Z","body":"Is this also safe in window mode?"}}