diff --git a/imageMaker.js b/imageMaker.js index aa8de58..a0e9d31 100644 --- a/imageMaker.js +++ b/imageMaker.js @@ -429,7 +429,7 @@ $(this).each(function (delta) { find_highest_ZIndex: function(){ return Math.max.apply(null, $.map($('body *'), function(e,n) { if ($(e).css('position') != 'static') - return parseInt($(e).css('z-index')) || 1; + return parseInt($(e).css('z-index'))+1 || 1; })); } @@ -1712,4 +1712,4 @@ MemeGeneratorTheme.wrapper_text = function (text_info) { -})(this, window.jQuery); \ No newline at end of file +})(this, window.jQuery);