diff --git a/examples/demo-dropdown-position.html b/examples/demo-dropdown-position.html new file mode 100644 index 000000000..9cbd5388d --- /dev/null +++ b/examples/demo-dropdown-position.html @@ -0,0 +1,168 @@ + + + + + AngularJS ui-select + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Dropdown Position

+ +
+
+
+ +
default value can be changed at uiSelectConfig
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +

Always UP

+ + {{$select.selected.name}} + +
+ + email: {{person.email}} + age: + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + +

Always DOWN

+ + {{$select.selected.name}} + +
+ + email: {{person.email}} + age: + +
+
+ +
+
+
+
+
+
+
+
+ + +

AUTO depending on available space (default)

+ + {{$select.selected.name}} + +
+ + email: {{person.email}} + age: + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/src/common.js b/src/common.js index efc7a5b9f..5ebb689e4 100644 --- a/src/common.js +++ b/src/common.js @@ -93,6 +93,7 @@ var uis = angular.module('ui.select', []) placeholder: '', // Empty by default, like HTML tag