From 25c404434fae8f3770281777e855903341ecbe16 Mon Sep 17 00:00:00 2001 From: Sarah Aziziyan Date: Thu, 7 Sep 2017 10:42:52 +0430 Subject: [PATCH] Fixing the moving to left issue when calling the **multi-select** for the second time and more, the whole page goes left and causes problems. even if I remove the select and the div that multi-select has generated, still the problem is there. This line is causing the issue : `ms.css({ position: 'absolute', left: '-9999px' });` has been edited to : `ms.css({ position: 'absolute', display: 'none' });` --- js/jquery.multi-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index d71ca10..f6aae37 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -37,7 +37,7 @@ ms = this.$element; if (ms.next('.ms-container').length === 0){ - ms.css({ position: 'absolute', left: '-9999px' }); + ms.css({ position: 'absolute', display: 'none' }); ms.attr('id', ms.attr('id') ? ms.attr('id') : Math.ceil(Math.random()*1000)+'multiselect'); this.$container.attr('id', 'ms-'+ms.attr('id')); this.$container.addClass(that.options.cssClass);