notifyjs icon indicating copy to clipboard operation
notifyjs copied to clipboard

position: center does not seems to work at all

Open G0dC0der opened this issue 9 years ago • 1 comments

$.notify("Failed to add the URL.", { position:"center" });
$.notify("Failed to add the URL.", { position:"center top" });
$.notify("Failed to add the URL.", { position:"center middle });
$.notify("Failed to add the URL.", { position:"center bottom" });

All of these produce the following error: Must be one of [t,b,l,r]

If I in any of the examples above change center to example "left", it starts working.

Using 0.4.2.

G0dC0der avatar Jul 14 '16 19:07 G0dC0der

Ah yep this is a bug, the parser should handle those cases. In the meantime, it works when you do "<v-align> <h-align>": $.notify("Failed to add the URL.", { position:"top center" });

jpillora avatar Jul 15 '16 03:07 jpillora