1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Merge pull request #2789 from RustyToms/drop_above_dropHeight_fix

recalculate $dropdown height after drop-above class added
This commit is contained in:
Kevin Brown 2014-11-13 17:56:14 -05:00
commit a8377e3681

View File

@ -1325,10 +1325,11 @@ the specific language governing permissions and limitations under the Apache Lic
};
if (above) {
css.top = offset.top - dropHeight;
css.bottom = 'auto';
this.container.addClass("select2-drop-above");
$dropdown.addClass("select2-drop-above");
dropHeight = $dropdown.outerHeight(false);
css.top = offset.top - dropHeight;
css.bottom = 'auto';
}
else {
css.top = dropTop;