Update select2.js
above function doesn't work great
This commit is contained in:
parent
261dad0ee6
commit
85de8cc1d6
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue