From c4b5568f35b70afc9816ec892b4ea969d25d7e48 Mon Sep 17 00:00:00 2001 From: Ehsan Soleimanian <59331480+KFTco@users.noreply.github.com> Date: Wed, 27 Mar 2024 19:03:56 +0330 Subject: [PATCH] Make layers seprated and easy to select --- imageMaker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);