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

- old
+ new

@@ -1,11 +1,11 @@ ;(function($) { $.noty.layouts.topCenter = { name: 'topCenter', options: { // overrides options - + }, container: { object: '<ul id="noty_topCenter_layout_container" />', selector: 'ul#noty_topCenter_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);