Topic: How to Fix Sidenav on medium sized devices

novvia free asked 5 years ago


On my Retina Macbook Pro, I would expect that the fixed sidenav would be fixed. Is there a way to make that happen?

Bryan


Damian Gemza staff answered 5 years ago


Dear @novvia

You should manually adjust the content while changing breakpoints.

Best Regards,

Damian


Damian Gemza staff answered 5 years ago


Dear @novvia

Please use the [fixed]="true" input on the mdb-side-nav element, and add a fixed class for the same element.

If you want to change a breakpoint (I don't know which resolution you're using), please use the [sidenavBreakpoint] input.

Please take a look at our Sidenav documentation.

Best Regards,

Damian


novvia free commented 5 years ago

This does work, but I had to add a custom class that adjusted the input for the "content area" to account for the updated [sidenavBreakpoint]. Is that the way it should work, or should it automatically adjust the content if the sidenavBreakpoint is set?



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.5.1
  • Device: Macbook Pro
  • Browser: Chrome
  • OS: OS X
  • Provided sample code: No
  • Provided link: No