1
0
mirror of synced 2025-02-03 21:59:24 +03:00

Recalculation dropdown height if dropdownAutoWidth is true

This commit is contained in:
IliaFours 2014-04-22 14:54:36 +03:00
parent 79e031fbdf
commit ffddc48a24

View File

@ -1248,6 +1248,7 @@ the specific language governing permissions and limitations under the Apache Lic
// Add scrollbar width to dropdown if vertical scrollbar is present
dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width);
dropWidth > width ? width = dropWidth : dropWidth = width;
dropHeight = $dropdown.outerHeight(false);
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;
}
else {