Skip to content
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

Hot to make a bottom sheet like behavior using side navigation? #8649

Closed
tiancovici opened this issue Nov 26, 2017 · 4 comments
Closed

Hot to make a bottom sheet like behavior using side navigation? #8649

tiancovici opened this issue Nov 26, 2017 · 4 comments

Comments

@tiancovici
Copy link

Feature request, or proposal:

Would be ideal if we can make mat-sidenav have an input to allow to start from bottom rather than top.

What is the expected behavior?

I was hoping bottom sheet would be available, but for now wondering if we can replace it with mat-sidnav-container.

What is the current behavior?

No matter where I set bottom:0px; in mat-sidenav-container, I can never force the content to start from bottom. Is it possible to make it happen?

What are the steps to reproduce?

I put together an example here.

https://plnkr.co/edit/eGnr8iQzXj7SmStuRr2H?p=preview

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/animations": "^4.1.3",
"@angular/cdk": "^2.0.0-beta.12",
"@angular/cli": "^1.2.0",
"@angular/common": "^4.1.3",
"@angular/compiler": "^4.1.3",
"@angular/compiler-cli": "^4.1.3",
"@angular/core": "^4.1.3",
"@angular/forms": "^4.1.3",
"@angular/http": "^4.1.3",
"@angular/material": "^2.0.0-beta.12",
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@angular/platform-server": "^4.1.3",
"@angular/router": "^4.1.3",
@Kyderman
Copy link

Try:

Width: 100%
Margin-top 90%
Height: 10%

@jelbourn
Copy link
Member

See #8113

@tiancovici
Copy link
Author

@Kyderman, That's pretty close, but for some reason it's stuck in the center. At that point in order to make it bottom sheet like, it needs at least height of 50%; (tried inserting your css in mat-sidenav-container)

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@jelbourn @Kyderman @tiancovici and others