Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Properly position "uib-dropdown-menu" when it has class "dropdown-menu-right" and the parent element have hidden scrollbar #6601

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Stalinko
Copy link

When dropdown-menu is positioned relatively to the right it takes into account the right scrollbar width. It detects scrollbar by checking whether content height is bigger than clientHeight but sometimes scrollbar can be absent even when content doesn't fit the element visible area when "overflow = hidden".

In this pull request I'm adding proper check for this case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant