Commit 4366af51 authored by Phil Hughes's avatar Phil Hughes

Added JS to fix dropdown alignment

Closes #14386
parent e877cfda
$ ->
$('[data-toggle="dropdown"]').each ->
$dropdown = $(@).parent()
$menu = $dropdown.find('.dropdown-menu')
$dropdown.on 'shown.bs.dropdown', ->
dropdownRight = $menu.offset().left + $menu.outerWidth()
if dropdownRight >= $(window).width()
$menu.addClass 'dropdown-menu-align-right'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment