1
0
mirror of synced 2025-02-04 06:09:23 +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) {
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");
}