{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1256","repository_url":"https://api.github.com/repos/afollestad/material-dialogs","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1256/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1256/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1256/events","html_url":"https://github.com/afollestad/material-dialogs/issues/1256","id":199186683,"number":1256,"title":"Dialogs are too wide","user":{"login":"tihomirleka","id":448435,"avatar_url":"https://avatars.githubusercontent.com/u/448435?v=3","gravatar_id":"","url":"https://api.github.com/users/tihomirleka","html_url":"https://github.com/tihomirleka","followers_url":"https://api.github.com/users/tihomirleka/followers","following_url":"https://api.github.com/users/tihomirleka/following{/other_user}","gists_url":"https://api.github.com/users/tihomirleka/gists{/gist_id}","starred_url":"https://api.github.com/users/tihomirleka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tihomirleka/subscriptions","organizations_url":"https://api.github.com/users/tihomirleka/orgs","repos_url":"https://api.github.com/users/tihomirleka/repos","events_url":"https://api.github.com/users/tihomirleka/events{/privacy}","received_events_url":"https://api.github.com/users/tihomirleka/received_events","type":"User","site_admin":false},"labels":[{"id":234586698,"url":"https://api.github.com/repos/afollestad/material-dialogs/labels/possible%20bug","name":"possible bug","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-06T12:28:40Z","updated_at":"2017-01-07T23:12:52Z","closed_at":null,"body":"For some reason dialogs are too wide when compared to standard android dialogs. First I noticed it with dialog that had a custom view set, and thought my view is problem, but then I tried standard list dialog and progress dialog and both dialog have the exact same problem. I attached some screenshots so you can better understand what am I talking about and below is code for showing the dialogs.\r\n\r\nI'm testing on Nexus 5 with Android 6.0.1 and the latest version of the library.\r\n\r\n![custom_view_dialog](https://cloud.githubusercontent.com/assets/448435/21717588/44829a2a-d412-11e6-834d-3cae8b7b9865.png)\r\n```java\r\nnew MaterialDialog.Builder(context).theme(Theme.LIGHT)\r\n            .titleColorRes(R.color.gray_dark)\r\n            .negativeColorRes(R.color.orange)\r\n            .positiveColorRes(R.color.orange)\r\n            .title(R.string.dialog_title_task_due_date_reminder_set_custom)\r\n            .customView(R.layout.dialog_task_due_date_reminder, false)\r\n            .negativeText(R.string.action_close)\r\n            .positiveText(R.string.ok)\r\n```\r\n![list_dialog](https://cloud.githubusercontent.com/assets/448435/21717589/44837666-d412-11e6-9e0a-5f760478a046.png)\r\n```java\r\nnew MaterialDialog.Builder(context).theme(Theme.LIGHT)\r\n            .titleColorRes(R.color.gray_dark)\r\n            .negativeColorRes(R.color.orange)\r\n            .positiveColorRes(R.color.orange)\r\n            .adapter(adapter, layoutManager)\r\n            .negativeText(context.getString(R.string.action_close))\r\n            .cancelable(true)\r\n            .cancelListener(new DialogInterface.OnCancelListener() {\r\n                @Override public void onCancel(DialogInterface dialog) {\r\n                    dialog.dismiss();\r\n                }\r\n            });\r\n```\r\n![progress_dialog](https://cloud.githubusercontent.com/assets/448435/21717590/4484d89e-d412-11e6-8410-047a62bed868.png)\r\n```java\r\nnew MaterialDialog.Builder(this).theme(Theme.LIGHT)\r\n                    .titleColorRes(R.color.gray_dark)\r\n                    .negativeColorRes(R.color.orange)\r\n                    .positiveColorRes(R.color.orange)\r\n                    .progress(true, 0)\r\n                    .show();\r\n```\r\n\r\nAnu idea why this is happening?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/271116825","html_url":"https://github.com/afollestad/material-dialogs/issues/1256#issuecomment-271116825","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1256","id":271116825,"user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"created_at":"2017-01-07T23:12:52Z","updated_at":"2017-01-07T23:12:52Z","body":"@tihomirleka well, the only change that could have affected this was the AppCompat 25.1.0 update. I will probably need to put some manually height/width limiting logic in there now."}}
{"actor":{"display_login":"afollestad"}}