You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to set the width beautifully on xs(phone) screen put this on the outer most container (I am using angular/flex-layout) ngStyle.gt-xs="width: 380px" ngStyle.xs="width:85vw"
I believe that it was a combination of looking at what M1 used and eyeballing it, because we need some cut-off point to prevent the dialog from getting too wide.
@adisreyaj I guess, you want to use max-width & max-heigth for cdk-overlay-pane
otherwise menus, etc would always stretch to 100%
When using flex-layout the max-width media query should be 599 (ref)
so here is what I use:
@media(max-width:599px){
// modal dailogs should be able to fill the fullscreen if required
.cdk-overlay-pane{max-width:100vw!important;max-height:100vh!important;}}
angular-automatic-lock-bot commented on Sep 10, 2019
Activity
willshowell commentedon Feb 20, 2017
Was confused by this as well. If it helps, here's a plunker showing the issue http://plnkr.co/edit/e4Kx2GzQoGwQUn4A7utq?p=preview
akomarovsky commentedon Feb 20, 2017
as a temporary solution I fixed it by adding to styles.css (the main style file):
Better solution will be welcome
gedclack commentedon Apr 15, 2017
in addition to @akomarovsky temporary solution,
on
xsscreen if you need 100% available width use thisto set the width beautifully on xs(phone) screen put this on the outer most container (I am using angular/flex-layout)
ngStyle.gt-xs="width: 380px" ngStyle.xs="width:85vw"jelbourn commentedon May 1, 2017
@crisbeto do you know where the
80vwcame from?crisbeto commentedon May 2, 2017
I believe that it was a combination of looking at what M1 used and eyeballing it, because we need some cut-off point to prevent the dialog from getting too wide.
emilio-martinez commentedon Oct 3, 2017
@crisbeto #7488 addresses this by shifting the responsibility of max-width to Overlay config via Dialog config
adisreyaj commentedon Mar 8, 2019
If you want to have a fullscreen dialog on mobile, just add this to the styles.scss:
So the modal will have the following width and height on desktop and in mobile it will be fullscreen.
This is my openDIalog function in controller:
HangLoop commentedon Mar 28, 2019
@adisreyaj The address bar will cover the content on ios safari
tmtron commentedon Jun 3, 2019
@adisreyaj I guess, you want to use
max-width&max-heigthforcdk-overlay-paneotherwise menus, etc would always stretch to
100%When using flex-layout the
max-widthmedia query should be599(ref)so here is what I use:
angular-automatic-lock-bot commentedon Sep 10, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.