From 277ae4ff5ab604635b5dca3c3ec1d98ed1dfe0d5 Mon Sep 17 00:00:00 2001 From: Pier-Olivier Thibault Date: Thu, 14 Jun 2012 07:14:49 -0400 Subject: [PATCH] Added zindex options to dropdown so we can make sure it presents itself on top of whatever is existing in the DOM --- select2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 7f3cbe37..7ac2f77d 100755 --- a/select2.js +++ b/select2.js @@ -539,6 +539,7 @@ formatInputTooShort: function (input, min) { return "Please enter " + (min - input.length) + " more characters"; }, minimumResultsForSearch: 0, minimumInputLength: 0, + zIndex: 2000, id: function (e) { return e.id; }, matcher: function(term, text) { return text.toUpperCase().indexOf(term.toUpperCase()) >= 0; @@ -653,7 +654,8 @@ this.dropdown.css({ top: offset.top + height, left: offset.left, - width: width + width: width, + "z-index": this.opts.zIndex }); },