1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Update select2.js

above function doesn't work great
This commit is contained in:
lukinpark 2013-11-07 11:45:05 +01:00
parent 261dad0ee6
commit 85de8cc1d6

View File

@ -1218,8 +1218,8 @@ the specific language governing permissions and limitations under the Apache Lic
}; };
if (above) { if (above) {
css.bottom = windowHeight - offset.top; css.top = offset.top - dropHeight;
css.top = 'auto'; 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");
} }