Skip to content

Commit ffddc48

Browse files
committed
Recalculation dropdown height if dropdownAutoWidth is true
1 parent 79e031f commit ffddc48

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ the specific language governing permissions and limitations under the Apache Lic
12481248
// Add scrollbar width to dropdown if vertical scrollbar is present
12491249
dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width);
12501250
dropWidth > width ? width = dropWidth : dropWidth = width;
1251+
dropHeight = $dropdown.outerHeight(false);
12511252
enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;
12521253
}
12531254
else {

0 commit comments

Comments
 (0)