Skip to content

Commit 2734678

Browse files
committed
1.2.0
1 parent eaa949e commit 2734678

File tree

4 files changed

+312
-163
lines changed

4 files changed

+312
-163
lines changed

auto-complete.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
.autocomplete-suggestions {
22
text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);
3-
4-
/* core styles should not be changed */
5-
position: absolute; display: none; z-index: 9999; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
3+
position: absolute; /* display: none; z-index: 9999; */ max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
4+
left: auto; top: 100%; width: 100%; margin: 0; contain: content; /* 1.2.0 */
65
}
76
.autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
87
.autocomplete-suggestion b { font-weight: normal; color: #1f8dd6; }
98
.autocomplete-suggestion.selected { background: #f0f0f0; }
9+
10+
autocomplete-holder {
11+
overflow: visible; position: absolute; left: auto; top: auto; width: 100%; height: 0; z-index: 9999; box-sizing: border-box; margin:0; padding:0; border:0; contain: size layout;
12+
}
13+
14+
autocomplete-holder[position="top"] {
15+
margin-top: 0 !important;
16+
}
17+
autocomplete-holder[position="top"] .autocomplete-suggestions {
18+
transform: translateY(-100%);
19+
}

0 commit comments

Comments
 (0)