Topic: Nav dropdowns get cutoff on mobile screens

chase.tb pro asked 6 years ago


When using a dropdown in the nav bar on a mobile device, the dropdown aligns its left side with the left side  of the dropdown button and cuts off the menu. This is visible on my website as well as the template preview page: https://mdbootstrap.com/previews/templates/admin-dashboard/html/dashboards/v-1.html Here's a screenshot illustrating the point: https://imgur.com/a/VpRW9

Neanrakyr pro commented 6 years ago

I have the same issue.

Jakub Strebeyko staff answered 6 years ago


Hi there,

Thanks for reaching out! The bug has been repaired with the newest release, but the newest styles have not been totally implemented yet . For anyone in need of solution now, please upgrade the package. For those who for some reason are unable to do it (and are ready to fiddle a bit in their code), I suggest trying moving a .dropdown-menu element in your CSS or by adding this at the end of your JS input (either in your custom .js file or in between the <script> tags in your .html file - like so:

$(function (){
$('.dropdown-menu').css('left', '-98px')
})

The value of left property depends how much the .dropdown-menu is off and so on the length of the collapsed word.

With Best Regards,
Kuba


Neanrakyr pro commented 6 years ago

I have the same problem on 4.4.5

Jakub Strebeyko staff commented 6 years ago

Thanks for letting us know. We are preparing a major update to MDB itself, and templates shall be updated accordingly. Meanwhile let me know whether the workaround above solves the issue. With Best Regards, Kuba


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags