HubSpot / messenger

Growl-style alerts and messages for your app. #hubspot-open-source
http://github.hubspot.com/messenger/
MIT License
4.02k stars 406 forks source link

Prepend message when displaying on bottom right of the screen #88

Open BrokenChair opened 9 years ago

BrokenChair commented 9 years ago

The notifications on my site are displayed on the bottom right corner of the screen. When more than one notification is active, I want the newer notification to be posted to the bottom. Currently, the older notification remains at the bottom.

Is there a method that allows this?

Current behavior: 3 2 1

Desired behavior: 1 (pushed to top when notification 2 is displayed) 2 (pushed below 1 when notification 3 is displayed) 3

geekjuice commented 9 years ago

A quick look at the code and documentation tells me that Messenger doesn't currently have this feature it seems. It seems like the logic that handles the ordering in the message slots in this function here. I can't imagine it would be too hard to implement this feature, so if you would like to contribute to the project and open a pull request, that would be awesome. Otherwise, I'll keep note of this feature and hopefully have it implemented in a future iteration.