angular / angular/components

Dialog with fixed height less than 100% has 2 scrollbars

未关闭
#6,584 13 条评论 14 个 reaction 已指派 0 人 在 GitHub 查看
area: material/dialog P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug

#### What is the expected behavior?
Dialog with fixed height, that is less than 100% to have only one scroll bar - for content section.

#### What is the current behavior?
Dialog has 2 scrollbars - 1 for content and 1 for the whole dialog.

#### What are the steps to reproduce?
https://plnkr.co/edit/1teyLZLR7MVsrZLPD94V?p=preview

#### What is the use-case or motivation for changing an existing behavior?
2 scrollbars is weak user-experience.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Browsers: Chrome (Windows 10, Lunix Ubuntu 16.04 LTS), IE11 (Windows 10)
Material: 2.0.0-beta.6, 2.0.0-beta.8
OS, Typescript - not applicable

#### Is there anything else we should know?
Probably the same is applicable to fixed width, but lets not noise the issue with it.

贡献指南

打开贡献指南

调研方向

从链接的 Plunker 复现和 Material 对话框实现开始。确认固定高度低于 100% 时出现两个滚动条的行为,然后验证在受影响的浏览器中对话框只有内容滚动条。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。