Skip to content

feat(sidenav): add responsive sidenav #6525

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

Closed
wants to merge 2 commits into from
Closed

feat(sidenav): add responsive sidenav #6525

wants to merge 2 commits into from

Conversation

oliver-ni
Copy link

  • Add responsive sidenav
  • Close and open depending on width

Fix #1130

* Add responsive sidenav
* Close and open depending on width

Fix #1130
@oliver-ni oliver-ni requested a review from mmalerba as a code owner August 17, 2017 18:29
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 17, 2017
* Used window width instead of element width
* Note that this only works when the window is rezied.
* If you resize it some other way, call checkBreakpoint().
*/
@HostListener('window:resize', ['$event'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@willshowell willshowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also thanks for putting this together! I've personally been really looking forward to it.

checkBreakpoint() {
if (this._element.nativeElement.offsetWidth < this.breakpointWidth) {
if (this.breakpointChangeMode)
this._sidenavs.forEach(sidenav => sidenav.mode = "over");
Copy link
Contributor

@willshowell willshowell Aug 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use curly braces here and below

@oliver-ni oliver-ni closed this Aug 17, 2017
@oliver-ni
Copy link
Author

Starting new branch because of drawer/sidenav being split.

@oliver-ni oliver-ni mentioned this pull request Aug 17, 2017
@oliver-ni
Copy link
Author

New version: #6535

@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-sidenav: make it automatically responsive
3 participants