vendor/assets/javascripts/noty/layouts/center.js in noty-rails-2.0.3.1 vs vendor/assets/javascripts/noty/layouts/center.js in noty-rails-2.1.0
- old
+ new
@@ -27,15 +27,15 @@
var actual_height = dupe.height();
dupe.remove();
if ($(this).hasClass('i-am-new')) {
$(this).css({
- left: ($(window).width() - $(this).outerWidth()) / 2 + 'px',
+ left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
top: ($(window).height() - actual_height) / 2 + 'px'
});
} else {
$(this).animate({
- left: ($(window).width() - $(this).outerWidth()) / 2 + 'px',
+ left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px',
top: ($(window).height() - actual_height) / 2 + 'px'
}, 500);
}
}
\ No newline at end of file