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

Top plus height position calculation seems wrong #143

Open
shirashif opened this issue Mar 4, 2018 · 0 comments
Open

Top plus height position calculation seems wrong #143

shirashif opened this issue Mar 4, 2018 · 0 comments

Comments

@shirashif
Copy link

When I have multiple notifications, that exceed the visible window height, the last one that appears in the column, before moving to the next column is partly cut. This is the original code:

if ((top + elHeight) > window.innerHeight) {
    position = startTop;
    k ++;
    j = 0;
}

To fix I changed the query to this:
if ((position + elHeight) > window.innerHeight) {

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

No branches or pull requests

1 participant