ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Dropdown value falling outside the box

Open andrii-p opened this issue 11 years ago • 3 comments

I have a problem with displaying the chosen dropdown value. Please screenshot below:

image

As you see, the value is longer than the box itself and it is falling outside. However, when I open the dropdown, value is displayed properly:

image

I did my best to find related issues, but I couldn't find any. Please advise if it is a problem with ui select or bootstrap css theme. My code is below.

<ui-select ng-model="item.id" theme="bootstrap">
   <ui-select-match allow-clear="true" placeholder="Select or type in">{{$select.selected}}</ui-select-match>
     <ui-select-choices repeat="item in itemList | filter: $select.search">
          <div ng-bind-html="item | highlight: $select.search"></div>
     </ui-select-choices> 
</ui-select>

Thanks

andrii-p avatar Aug 13 '15 21:08 andrii-p

Duplicate of #689 and #933

Checkout any of those for solutions.

awerlang avatar Aug 13 '15 23:08 awerlang

Got it work with

.ui-select-match-text{
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 40px;
}
.ui-select-toggle > .btn.btn-link {
  margin-right: 10px;
  top: 6px;
  position: absolute;
  right: 10px;
}

Thanks for help

andrii-p avatar Aug 24 '15 17:08 andrii-p

Fix from APelekh works well! Tried this at first:

https://github.com/atavakoli/ui-select/commit/59209fd95becde1011c886989fd5cff9ba7bafd0 But that displaced the delete icon (was placed out of the box)

CronbachAlpha avatar Sep 02 '15 08:09 CronbachAlpha