angular / angular/components

Dialogue - overflow scrolling on small screens and margins

Đang mở
#2,481 23 bình luận 2 reaction 0 người được giao Xem trên GitHub
area: material/dialog P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

#### Bug, feature request, or proposal:
The current dialogue does not seem to support sizing and scrolling on smaller screen sizes / small devices. This was possible on the material 1 dialogue. If the vertical height of the screen was incredibly small scrollbars would appear see this screenshot:

![image](https://cloud.githubusercontent.com/assets/3189206/21576606/02e52fc4-cf3f-11e6-8716-0388d1e954fe.png)

With version 2 - the dialogue is pushed off the screen and no scrollbars ever appear in the middle. It does not maintain any margins on the top or bottom.

![image](https://cloud.githubusercontent.com/assets/3189206/21576657/b833cf10-cf40-11e6-9f68-856fb744545e.png)

Maybe there is this a means this can be achieved but the examples are quite primitive.

#### What is the expected behavior?
When screen is decreased in size scrollbars should appear for the content.

#### What is the current behavior?
The current dialogue is pushed off the screen with no margin at the top or bottom. The content remains the same size

#### What are the steps to reproduce?

Providing a Plunker (or similar) is the *best* way to get the team to see your issue.
https://plnkr.co/edit/DrI42Su0v6OntJkjUNOI?p=preview

#### What is the use-case or motivation for changing an existing behavior?
The current modal is only useful for very simple use cases.

#### Which versions of Angular, Material, OS, browsers are affected?
Latest.

#### Is there anything else we should know?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu với bản tái hiện được liên kết trên Plunker và kiểm tra hành vi của hộp thoại Angular Material khi chiều cao viewport nhỏ. So sánh phiên bản hiện tại với hành vi Material 1 đã được mô tả, tập trung vào các lề dọc và hiện tượng tràn nội dung. Công việc được hoàn tất khi hộp thoại vẫn nằm trong viewport và nội dung của nó có thể cuộn được khi màn hình quá thấp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.