alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

unable to define individual position #57

Open ghost opened 8 years ago

ghost commented 8 years ago

Plunkr demo here: http://plnkr.co/edit/VFcfYRe8jY53Mkup6UeK?p=preview

the issue is my inability to dynamically define where the notification will appear. Passing in different numbers for the "startTop" and "startRight" parameters do not affect where the notification appears (as seen in the plunkr example. In my application I need to make the notification appear in different places (to correspond with specific elements) but can not define the position through these (startTop, startRight) parameters. Simply using "positionX: 'center'" is not specific enough of a position.

celsomtrindade commented 8 years ago

+1 same here All of them show on the same place.

tgelu commented 8 years ago

+1

guikubivan commented 8 years ago

Same here, I think the issue is you're using an assignment operator(=) where you maybe meant to use a conditional operator(==) in this line: https://github.com/alexcrack/angular-ui-notification/blob/master/src/angular-ui-notification.js#L85

Anatal commented 7 years ago

What is the solution? I have the same problem. The notification appears in the same place despite I had defined the 'positionY' and 'positionX'.