Преглед на файлове

Update select2.js

above function doesn't work great
lukinpark преди 11 години
родител
ревизия
85de8cc1d6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      select2.js

+ 2 - 2
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");
             }