angular / angular/components

Dialogue - overflow scrolling on small screens and margins

オープン
#2,481 コメント 23 件 リアクション 2 件 担当者 0 名 GitHub で見る
area: material/dialog P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### 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?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた Plunker の再現から始め、viewport の高さが小さい場合の Angular Material のダイアログの動作を確認します。現在のバージョンを、説明されている Material 1 の動作と比較し、垂直方向のマージンとコンテンツのオーバーフローに注目します。画面の高さが足りない場合でもダイアログが viewport 内に収まり、コンテンツがスクロール可能になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。