notifyjs icon indicating copy to clipboard operation
notifyjs copied to clipboard

Globals zon't stack anymore

Open rubenvereecken opened this issue 11 years ago • 0 comments

It's been a while since I last tried but I can confirm this has worked at some point in time. Global Notifies have however stopped stacking.

Scenario:

  • Data gets fetched from the server
  • Two Notify's should get shown, one for every piece of data
    data = @createNotifyData()
    options =
      autoHideDelay: 5000
      elementPosition: 'top left'
      globalPosition: 'bottom right'
      showDuration: 0
      autoHide: false
      clickToHide: true

    $.notify data, options

This results in only one Notify showing. Upon inspecting the DOM, 2 notifyjs-wrappers exist. However, one of them has no data in it (the second in the screenshot below).

The last one to call $.notify always gets shown, the other miraculously disappears. Could you give me some pointers on how to resolve this? Am I missing some detail I accidentally altered along the way, destroying the stacking functionality?

EDIT: I confirmed this with an added delay between showing the two Notifies. The first simply got replaced by the second. Behavior worth noting: There was no transition effect for the second. It seamlessly appeared on top or in place of the former.

rubenvereecken avatar Aug 01 '14 17:08 rubenvereecken