{"action":"created","issue":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1120","repository_url":"https://api.github.com/repos/afollestad/material-dialogs","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1120/labels{/name}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1120/comments","events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1120/events","html_url":"https://github.com/afollestad/material-dialogs/issues/1120","id":164019324,"number":1120,"title":"Marshmallow DatePicker is cutoff when dialog buttons are stacked.","user":{"login":"erseno","id":16024566,"avatar_url":"https://avatars.githubusercontent.com/u/16024566?v=3","gravatar_id":"","url":"https://api.github.com/users/erseno","html_url":"https://github.com/erseno","followers_url":"https://api.github.com/users/erseno/followers","following_url":"https://api.github.com/users/erseno/following{/other_user}","gists_url":"https://api.github.com/users/erseno/gists{/gist_id}","starred_url":"https://api.github.com/users/erseno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erseno/subscriptions","organizations_url":"https://api.github.com/users/erseno/orgs","repos_url":"https://api.github.com/users/erseno/repos","events_url":"https://api.github.com/users/erseno/events{/privacy}","received_events_url":"https://api.github.com/users/erseno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/afollestad/material-dialogs/labels/bug","name":"bug","color":"E53935"}],"state":"open","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":3,"created_at":"2016-07-06T07:57:03Z","updated_at":"2016-08-08T17:45:42Z","closed_at":null,"body":" - Material Dialogs version: `0.8.5.6`\r\n - Device OS version: `6.0.1 API 23 Marshmallow`\r\n - Device Manufacturer: `Samsung`\r\n - Device Name: `Samsung S7`\r\n\r\n\r\nHello, I am making a material dialog with a custom view which contains a date picker widget\r\n\r\n```java\r\n  MaterialDialog dialog = new MaterialDialog.Builder(getActivity())\r\n                .customView(R.layout.partial_date_picker, false)\r\n                .positiveText(positiveButtonText)\r\n                .negativeText(negativeButtonText)\r\n                .onAny(this)\r\n                .title(dialogTitle)\r\n                .neutralText(R.string.cancel)\r\n                .build();\r\n```\r\n\r\nNote that the dialog is used in ```onCreateDialog``` and shown as a dialog fragment.\r\n\r\nThis is the layout of the custom view\r\n\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"wrap_content\"\r\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n    android:gravity=\"center\"\r\n    android:orientation=\"vertical\">\r\n\r\n    <DatePicker\r\n        android:layout_gravity=\"center\"\r\n        android:theme=\"@style/Date_Picker_Style\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:id=\"@+id/datePicker\" />\r\n\r\n</LinearLayout>\r\n```\r\n\r\nAll works well however I noticed on the German locale, the text being a bit longer caused the buttons to stack which is good but then this causes the marshmallow date picker to be cutoff as seen in the screenshot below.\r\n\r\nThis is not an issue on lollipop and earlier because these date pickers scroll vertically but the marshmallow one does not, it just scrolls horizontally to go to the next month and attempts to fit the entire calendar in one view. \r\n\r\n###### Actual Result\r\n\r\n![screenshot_20160628-171457](https://cloud.githubusercontent.com/assets/16024566/16610951/6ca46de6-4356-11e6-86f0-ee5e7c620e97.png)\r\n\r\nThanks for reading my issue and great job on the library, it has helped me out a lot! "},"comment":{"url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/238317245","html_url":"https://github.com/afollestad/material-dialogs/issues/1120#issuecomment-238317245","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/1120","id":238317245,"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":"2016-08-08T17:45:42Z","updated_at":"2016-08-08T17:45:42Z","body":"@erseno I added a date picker example to the sample project. Even if I force button stacking, I don't have any issues with it fitting vertically.\r\n\r\nI tried it on my *Nexus 6P* and in a *Nexus 5X* emulator as seen here:\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/1820165/17489906/f67e9af4-5d65-11e6-813b-133b1e7f98b3.png\" width=\"400px\" />\r\n"}}
{"actor":{"display_login":"afollestad"}}