From a8bf06469f746721f3008da5c1260ffe8ee4182b Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 18 Oct 2015 13:34:37 +0300 Subject: [PATCH] Variable element width support --- examples/demo-multi-select.html | 12 ++--- src/bootstrap/select-multiple.tpl.html | 6 ++- src/common.css | 21 +++++++- src/select2/select-multiple.tpl.html | 7 +-- src/uiSelectController.js | 66 +++++++++++++++++++------- src/uiSelectMatchDirective.js | 5 -- src/uiSelectMultipleDirective.js | 9 ++-- test/select.spec.js | 14 ------ 8 files changed, 85 insertions(+), 55 deletions(-) diff --git a/examples/demo-multi-select.html b/examples/demo-multi-select.html index ed1e6e27a..96e39c26c 100644 --- a/examples/demo-multi-select.html +++ b/examples/demo-multi-select.html @@ -122,7 +122,7 @@

Array of strings

Selected: {{multipleDemo.colors}}


Array of objects (sorting enabled)

- + {{$item.name}} <{{$item.email}}>
@@ -135,8 +135,8 @@

Array of objects (sorting enabled)

Selected: {{multipleDemo.selectedPeople}}


-

Deselect callback with single property binding

- +

Deselect callback with single property binding (select2 theme)

+ {{$item.name}} <{{$item.email}}>
@@ -150,8 +150,8 @@

Deselect callback with single property binding

Last removed model: {{lastRemoved.model}}


-

Array of objects with single property binding

- +

Array of objects with single property binding (select2 theme)

+ {{$item.name}} <{{$item.email}}>
@@ -165,7 +165,7 @@

Array of objects with single property binding


Array of objects (with groupBy)

- + {{$item.name}} <{{$item.email}}>
diff --git a/src/bootstrap/select-multiple.tpl.html b/src/bootstrap/select-multiple.tpl.html index 4d96f4db2..f5ac83c93 100644 --- a/src/bootstrap/select-multiple.tpl.html +++ b/src/bootstrap/select-multiple.tpl.html @@ -1,5 +1,7 @@ -