{"action":"created","issue":{"url":"https://api.github.com/repos/winjs/winjs/issues/1486","labels_url":"https://api.github.com/repos/winjs/winjs/issues/1486/labels{/name}","comments_url":"https://api.github.com/repos/winjs/winjs/issues/1486/comments","events_url":"https://api.github.com/repos/winjs/winjs/issues/1486/events","html_url":"https://github.com/winjs/winjs/issues/1486","id":108278472,"number":1486,"title":"SplitView Pane should automatically change display modes","user":{"login":"NCC1701M","id":7260053,"avatar_url":"https://avatars.githubusercontent.com/u/7260053?v=3","gravatar_id":"","url":"https://api.github.com/users/NCC1701M","html_url":"https://github.com/NCC1701M","followers_url":"https://api.github.com/users/NCC1701M/followers","following_url":"https://api.github.com/users/NCC1701M/following{/other_user}","gists_url":"https://api.github.com/users/NCC1701M/gists{/gist_id}","starred_url":"https://api.github.com/users/NCC1701M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCC1701M/subscriptions","organizations_url":"https://api.github.com/users/NCC1701M/orgs","repos_url":"https://api.github.com/users/NCC1701M/repos","events_url":"https://api.github.com/users/NCC1701M/events{/privacy}","received_events_url":"https://api.github.com/users/NCC1701M/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-25T07:42:17Z","updated_at":"2015-09-28T07:04:25Z","closed_at":null,"body":"Give use an option where we can decide if we would change the display mode of the SplitViewPane programatically or if it should do this automatically when the screen is of a specific size.\r\n\r\nFor example: \r\n\r\nOn small screens (Smartphones etc.) the closedDisplayMode could be automatically switch to none and the openedDisplayMode could be overlay\r\n\r\nOn medium screens (Tablets etc.) the closedDisplayMode could be automatically switch to inline and the openedDisplayMode could be overlay.\r\n\r\nOn large screens the closedDisplayMode could be automatically switch to inline and the openedDisplayMode could be inline as well or it would be great, if you could implement a new display mode where the split view is always expanded"},"comment":{"url":"https://api.github.com/repos/winjs/winjs/issues/comments/143656488","html_url":"https://github.com/winjs/winjs/issues/1486#issuecomment-143656488","issue_url":"https://api.github.com/repos/winjs/winjs/issues/1486","id":143656488,"user":{"login":"NCC1701M","id":7260053,"avatar_url":"https://avatars.githubusercontent.com/u/7260053?v=3","gravatar_id":"","url":"https://api.github.com/users/NCC1701M","html_url":"https://github.com/NCC1701M","followers_url":"https://api.github.com/users/NCC1701M/followers","following_url":"https://api.github.com/users/NCC1701M/following{/other_user}","gists_url":"https://api.github.com/users/NCC1701M/gists{/gist_id}","starred_url":"https://api.github.com/users/NCC1701M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NCC1701M/subscriptions","organizations_url":"https://api.github.com/users/NCC1701M/orgs","repos_url":"https://api.github.com/users/NCC1701M/repos","events_url":"https://api.github.com/users/NCC1701M/events{/privacy}","received_events_url":"https://api.github.com/users/NCC1701M/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T07:04:25Z","updated_at":"2015-09-28T07:04:25Z","body":"Well, I find it useful to fill some space, when you have a big screen and the content don't looks very well when it's spread over the whole screen. So you can show always the splitview and you don't waste so much space by showing void.\r\n\r\nWhen you do this by set `openedDisplayMode` to `inline` the user can always click on the toggle and close it. To prevent this you have to disable the toggle, but there is no way within the `WinJS.UI.SplitViewPaneToggle` to `disable` it.\r\n\r\n> The code in this post on MSDN should be helpful in achieving this scenario without having the functionality built into the SplitView.\r\n\r\nYeah but you can do all this just by using css and there is no need for javascript doing this for you. So why must I use JavaScript to achieve this behaviour?"}}