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

Multiple animations closing at the same time breaks positioning #205

Closed
aleho opened this issue Sep 4, 2018 · 0 comments
Closed

Multiple animations closing at the same time breaks positioning #205

aleho opened this issue Sep 4, 2018 · 0 comments

Comments

@aleho
Copy link

aleho commented Sep 4, 2018

If multiple notifications close at the same time (e.g. via a timer), positioning of all notifications is horribly broken (spaces, big offset).

This apparently doesn't happen with "newest_on_top" set to true.

Test case to reproduce:

(function ($) {
    function showNotification(delay) {
        this._counter = (this._counter || 0) + 1;

        $.notify({
            message: 'Notification ' + this._counter,
        }, {
            showProgressbar: !!delay,
            newest_on_top: false,
            delay: delay || false,
            timer: 50,
            animate: {
                enter: 'animated fadeInDown',
                exit: 'animated fadeOutUp'
            }
        });
    }

    showNotification(10);
    showNotification(10);
    showNotification();
    showNotification(10);
    showNotification();
    showNotification(10);
    showNotification(10);
})(jQuery);
@aleho aleho closed this as completed Mar 15, 2023
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