-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(bootstrap layout): Restrict selected length to ui-select-container #1680
Conversation
Can you confirm this works with the clear button? Had to revert a number of bootstrap CSS issues because it broke styling with clear button (eg. #1337) |
It doesn't make it any worse from my point of view. The clear button stays below the select ... 👎 |
The clear button should be displayed next to the ui-select (like |
As far as I can see it it is wrong as soon as you restrict the width of the ui-select and have a long text, see https://www.browserstack.com/screenshots/28d5ffe5e0e3742265f046f27d3575f85acc4795 for lots of screenshots of it. |
👎 Before the fix it worked on short texts, after it doesn't. |
It needs to work with short and long texts... 😕 |
I added a absolute positioning to the remove link taken from the caret besides it. That works for both short and long texts. Is a.btn below .ui-select-toggle sufficient?
See the updated plnker: https://plnkr.co/edit/eHUcO3gdTY86owCOXL18?p=preview |
This fixes #1576 by keeping the remove link at its position. You could add some magic to shorten the text further to not hide below the button, but it improves the situation a lot. |
Any news on this? It's just a small change and I addressed all raised concerns. |
@burka accepting as an improvement over the existing functionality, thanks! |
angular-ui#1680) This fixes angular-ui#1576 by keeping the remove link at its position.
In bootstrap theme, if you have a ui-select with a given width and a long selected option it can overflow its box.
Reproduced with most recent versions at https://plnkr.co/edit/eHUcO3gdTY86owCOXL18?p=preview .
angularjs 1.5.7, bootstrap 3.3.6, ui-select 0.18.0