1
0
mirror of synced 2025-02-09 16:49:24 +03:00

Merge pull request #2307 from IFours/master

Recalculation dropdown height if dropdownAutoWidth is true
This commit is contained in:
Kevin Brown 2014-04-26 16:16:45 -04:00
commit 1c7706ad9e

View File

@ -1251,6 +1251,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 {