question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tmburnellcommented, Mar 10, 2021

@manandkumaar this was the solution i used: https://github.com/angular/components/issues/10679#issuecomment-379029872

I might lock you into a version (where you would have to update it with angular) … but this was the only answer i had.

1reaction
manandkumaarcommented, Mar 9, 2021

@tmburnell Thanks for reporting this issue.

I too facing this issue. We have map in modal component. Dropdown list is not visible when Full-Screen is enable on map.

Any workaround is highly appreciated.

image

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

overlay on html wont show in fullscreen - Stack Overflow
I have a video on top of which i have a div that serves as an overlay, on click the video will play....
Read more >
Overlay | Angular Material
The FullscreenOverlayContainer is an alternative to OverlayContainer that supports correct displaying of overlay elements in fullscreen mode.
Read more >
Using Angular Material Dialog during Fullscreen
The Dialog just doesn't show up during fullscreen mode. Reason being, the dialog or rather the overlay element is rendered at the HTML's...
Read more >
How To Create a Full screen Overlay Navigation - W3Schools
Slide in from the side. /* Open when someone clicks on the span element */ · width ; Slide down from the top....
Read more >
How to overlay something on top of a YouTube video? : r/css
You'll need to add the overlay element into the YouTube's element which is made fullscreen (note: it's not the video element).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found