Update select2.js
above function doesn't work great
This commit is contained in:
parent
261dad0ee6
commit
85de8cc1d6
@ -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…
x
Reference in New Issue
Block a user