vendor/assets/javascripts/noty/layouts/bottomCenter.js in noty-rails-2.0.3.1 vs vendor/assets/javascripts/noty/layouts/bottomCenter.js in noty-rails-2.1.0

- old
+ new

@@ -1,11 +1,11 @@ ;(function($) { $.noty.layouts.bottomCenter = { name: 'bottomCenter', options: { // overrides options - + }, container: { object: '<ul id="noty_bottomCenter_layout_container" />', selector: 'ul#noty_bottomCenter_layout_container', style: function() { @@ -18,13 +18,13 @@ margin: 0, padding: 0, listStyleType: 'none', zIndex: 10000000 }); - + $(this).css({ - left: ($(window).width() - $(this).outerWidth()) / 2 + 'px', + left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px' }); } }, parent: { object: '<li />', @@ -36,6 +36,6 @@ width: '310px' }, addClass: '' }; -})(jQuery); \ No newline at end of file +})(jQuery);