Topic: Navbar Dropdown - Change left to right and right to left when changing screen sizes

jammerxd pro asked 5 years ago


Expected behavior When changing screen sizes, the navbar should adjust dropdowns to be left or right when collapsed to prevent options from being drawn off screen.

Actual behavior When changing screen sizes, dropdowns in the navigation window do not change left or right(they go off screen).

Resources (screenshots, code snippets etc.) https://gyazo.com/5baedaf2add8620149eb12eeb67494b4

I can't seem to be able to change the dropdown-left or dropdown-right classes in the javascript: https://mdbootstrap.com/snippets/jquery/jammerxd/1129810/


jammerxd pro answered 5 years ago


I have solved this with the snippet below: https://mdbootstrap.com/snippets/jquery/jammerxd/1129896/


jammerxd pro answered 5 years ago


I have solved this with the snippet below: https://mdbootstrap.com/snippets/jquery/jammerxd/1129896/



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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.8
  • Device: Virtual Machine(ESXI/GT 710)
  • Browser: Chrome 76 x64
  • OS: Windows Server 2019 Standard
  • Provided sample code: No
  • Provided link: Yes