Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting the position of drop-down menu while it is not in viewport #27

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

Conversation

AzhurMinimalWe
Copy link

Hi, chestercharles
If filter icon for drop-down menu is located too close to right border of window this menu is getting out from viewport.
Let me show you some improvement for your awesome table filter:
$trigger.click(function(a){a.pageX+310>$(window).width()&&$($content[0]).css({right:0});return $content.toggle()});
Now the drop-down menu always apears in viewport now
One more time thanks for this filter

@BieberGelson
Copy link

Thank you @AzhurMinimalWe !

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

Successfully merging this pull request may close these issues.

2 participants