Browse Source

Merge pull request #1887 from lukinpark/patch-1

Update select2.js
Igor Vaynberg 11 years ago
parent
commit
cb5b684ae5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      select2.js

+ 2 - 2
select2.js

@@ -1217,8 +1217,8 @@ the specific language governing permissions and limitations under the Apache Lic
             };
             };
 
 
             if (above) {
             if (above) {
-                css.bottom = windowHeight - offset.top;
-                css.top = 'auto';
+                css.top = offset.top - dropHeight;
+                css.bottom = 'auto';
                 this.container.addClass("select2-drop-above");
                 this.container.addClass("select2-drop-above");
                 $dropdown.addClass("select2-drop-above");
                 $dropdown.addClass("select2-drop-above");
             }
             }