Skip to content

Commit

Permalink
refs #23878. [Positioning] Consider the offset of the browser window …
Browse files Browse the repository at this point in the history
…along the X axis
  • Loading branch information
tabuna committed Jan 19, 2018
1 parent 697163c commit 48063c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/lumx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@
}
else if (lxDropdown.position === 'center')
{
dropdownMenuLeft = (dropdownToggle.offset().left + (dropdownToggleWidth / 2)) - (dropdownMenuWidth / 2);
dropdownMenuLeft = (dropdownToggle.offset().left + (dropdownToggleWidth / 2)) - (dropdownMenuWidth / 2) - window.scrollX;
dropdownMenuRight = 'auto';
dropdownMenu.find('.dropdown-menu__top_beak,.dropdown-menu__bottom_beak').css(
{
Expand Down

0 comments on commit 48063c6

Please sign in to comment.