angular / angular/components

Full-screen overlay container doesn't work when fullscreen element is within an overlay

Đang mở
#10,679 15 bình luận 3 reaction 0 người được giao Xem trên GitHub
area: cdk/overlay 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:
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.

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 StackBlitz được liên kết và điểm vào `_createOverlay`. Theo dõi cách cấu hình `viewContainerRef` của snackbar được xử lý so với các chiến lược định vị toàn cục và được kết nối, sau đó xác minh rằng một snackbar hiển thị và được căn chỉnh bên trong một bộ chứa overlay toàn màn hình.

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ó
4/5
Thời gian dự kiến
3-5 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
35/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.