{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/552","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/552/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/552/events","html_url":"https://github.com/afollestad/material-dialogs/issues/552","id":83676009,"number":552,"title":"Dialog width does not follow the specs.","user":{"login":"danielfaust","id":320098,"avatar_url":"https://avatars.githubusercontent.com/u/320098?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfaust","html_url":"https://github.com/danielfaust","followers_url":"https://api.github.com/users/danielfaust/followers","following_url":"https://api.github.com/users/danielfaust/following{/other_user}","gists_url":"https://api.github.com/users/danielfaust/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfaust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfaust/subscriptions","organizations_url":"https://api.github.com/users/danielfaust/orgs","repos_url":"https://api.github.com/users/danielfaust/repos","events_url":"https://api.github.com/users/danielfaust/events{/privacy}","received_events_url":"https://api.github.com/users/danielfaust/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afollestad/material-dialogs/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-06-01T20:21:39Z","updated_at":"2015-07-25T22:52:00Z","closed_at":null,"body":"I don't know if this applies specwise to all dialogs, but at least the simple dialog does not follow the specs.\r\n\r\nAccording to the specs whe width should wrap the content, but in 56dp steps, with a minimum of 5 x 56dp.\r\n\r\nI'm mentioning this, because when I use a simple dialog on a Nexus 7 its width is almost as wide as the entire screen (in portrait mode), which is clearly not in accordance with the specs. It's as if margin_left and margin_right are defining the dialog's width, which is wrong.\r\n\r\nhttp://www.google.com/design/spec/components/dialogs.html#dialogs-simple-dialogs\r\n\r\nOther than that, it's a really great library."},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/124909391","html_url":"https://github.com/afollestad/material-dialogs/issues/552#issuecomment-124909391","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/552","id":124909391,"user":{"login":"hzsweers","id":1361086,"avatar_url":"https://avatars.githubusercontent.com/u/1361086?v=3","gravatar_id":"","url":"https://api.github.com/users/hzsweers","html_url":"https://github.com/hzsweers","followers_url":"https://api.github.com/users/hzsweers/followers","following_url":"https://api.github.com/users/hzsweers/following{/other_user}","gists_url":"https://api.github.com/users/hzsweers/gists{/gist_id}","starred_url":"https://api.github.com/users/hzsweers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzsweers/subscriptions","organizations_url":"https://api.github.com/users/hzsweers/orgs","repos_url":"https://api.github.com/users/hzsweers/repos","events_url":"https://api.github.com/users/hzsweers/events{/privacy}","received_events_url":"https://api.github.com/users/hzsweers/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T22:52:00Z","updated_at":"2015-07-25T22:52:00Z","body":"I think we can be flexible regarding \"short\" lines. If it's below a certain number of characters, just assume it's a short message and measure accordingly. Default to the 60 character length though.\r\n\r\nI think the character size won't really be a worry across languages though. We can revisit if people bring it up, but otherwise I think we can get probably 95% of what we want with behavior just with the simple approach.\r\n\r\nSo to be clear, my suggestion is:\r\n\r\n* Default to 60 char line length + normal horizonal insets as dialog width\r\n* If message is less than, say, 45 chars (we can test to see what looks best), then use the narrower line spec."}}