From 85de8cc1d67d28f2477787bc3b61058e236fb41c Mon Sep 17 00:00:00 2001 From: lukinpark Date: Thu, 7 Nov 2013 11:45:05 +0100 Subject: [PATCH] Update select2.js above function doesn't work great --- select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index 1187c7dc..cda250a3 100644 --- a/select2.js +++ b/select2.js @@ -1218,8 +1218,8 @@ the specific language governing permissions and limitations under the Apache Lic }; if (above) { - css.bottom = windowHeight - offset.top; - css.top = 'auto'; + css.top = offset.top - dropHeight; + css.bottom = 'auto'; this.container.addClass("select2-drop-above"); $dropdown.addClass("select2-drop-above"); }