Full-screen overlay container doesn't work when fullscreen element is within an overlay
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### Bug, feature request, or proposal:
I believe this might be a bug.
In this example I try to load a snackbar into a container using the `viewContainerRef` config.
https://stackblitz.com/edit/angular-material-tooltip-in-container
#### What is the expected behavior?
The snackbar should align itself to the viewContainerRef that is provided.
#### What is the current behavior?
But the `_createOverlay` function does not look at this config and always creates the overlay using the `GlobalPositionStrategy` instead of `ConnectedPositionStrategy`.
There could be another root cause, and if there is please let me know.
#### What are the steps to reproduce?
I have provided a stackblitz above.
#### What is the use-case or motivation for changing an existing behavior?
There is a hand full of times i would like to load the snackbar in a container.
One in particular is the div has been maximized to full screen (so the window is not visible).
Therefore the snackbar is not visible.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
latest.
贡献指南
调研方向
从链接的 StackBlitz 复现开始,并从 `_createOverlay` 入口点入手。跟踪 snackbar 的 `viewContainerRef` 配置相对于全局和连接位置策略是如何处理的,然后验证 snackbar 在全屏 overlay 容器内可见且对齐。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100