1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/tests/selection
Kevin Brown f14bdf6b7b
Fix search box expanding width of container (#5595)
This fixes a bug with the search box where, when it had a placeholder,
it would expand the width of the selection container because it was
too large. This bug was specifically caused by the search box not
factoring in the padding surrounding it when caclualting the width
it needed to be, which resulted in the search box extending
outside of the selection container. This bug was easy to notice if
your Select2 was set to have 100% width and if the container it was
held within was not a block element.

This fixes the bug by switching to using `width()` for calculating
the search width instead of using `innerWidth()`, which ignored the
surrounding padding.

Fixes #5517
Closes #5518
2019-07-29 22:25:19 -04:00
..
allowClear-tests.js #4530 Add tooltip (title) to the 'remove all' 'X' icon. (#5291) 2018-09-15 16:22:54 -03:00
containerCss-tests.js Add back *css* options through an adapter 2015-04-05 21:58:02 -04:00
focusing-tests.js Convert source and tests to unix newlines 2019-07-20 23:01:38 -04:00
multiple-tests.js Remove selection title attribute if text is empty (#5589) 2019-07-28 00:36:51 -04:00
placeholder-tests.js Combine tests into common files 2015-02-13 23:29:56 -05:00
search-placeholder-tests.js Fix search box expanding width of container (#5595) 2019-07-29 22:25:19 -04:00
search-tests.js Fix search box expanding width of container (#5595) 2019-07-29 22:25:19 -04:00
single-tests.js Remove selection title attribute if text is empty (#5589) 2019-07-28 00:36:51 -04:00
stopPropagation-tests.js Migrate from expect to assert.expect 2016-05-23 23:38:45 -04:00