-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MdDialog scroll in another context #5302
Comments
Have you try it without md-dialog-content like said this issue: #5002? |
Sure, but md-dialog-container has its scrollbar inside the dialog and not outside. |
@crtl This repository is for Material 2, for questions related to Angular 1 Material, please fill issue here |
@m98 this is not AngularJS related. I just used an AngularJS example to describe the targeted behaviour. |
@ctrl, if you put the content outside |
@julianobrasil Cool! It's almost done 😄 it seems to be a bug, or maybe there is an option for this? |
I think that dialog was not planned to work with large contents outside md-dialog-content tag. You can try playing around with panelClass (the applied to the div that contains dialog) and backdropClass to see what do you get. Take a look in this @willshowell comment: #3239 (comment) |
@jelbourn If scrollable dialogs are not already planned I can take to do it. Maybe the user can activate it by setting a certain attribute, such as |
@m98, scrollable dialog are planned. You just have to put the content inside What is not planned is something that looks like the example linked on the issue description (the vertical scrollbar in the backdrop panel instead of in the content part): But I think it can be achieved with the using of backdropClass option. |
@julianobrasil scrolling whole dialog is not what material design says:
|
There's no plan for allowing the entire dialog to be scrollable out-of-the-box, because it doesn't match the Material spec. If you want scrollable content, you can style the dialog yourself or use |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
feature request, proposal:
I dont want to scroll the
md-dialog-content
but the whole dialog so the scrollbar is outside of the dialog.What is the expected behavior?
Scroll the entire dialog and not only the
md-dialog-content
.I created a small example with the expected behaviour. You can find it here on codepen.
What is the current behavior?
md-dialog-content
is scrolled inside the dialog.What is the use-case or motivation for changing an existing behavior?
The developer should have to decide how the dialog is scrolled to match it with a specific use case.
Is there anything else we should know?
I've read in the changelog that there is a new
ScrollStrategy
API to affect the scrolling of overlays but I cannot find any documentation and theMdDialogConfig
does not support thescrollStrategy
option.So it is possible to change the scrolling behaviour for the dialog at the current version?
If so then how?
The text was updated successfully, but these errors were encountered: