File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ body > .select2-container.open {
47
47
border-top-right-radius : 0 ;
48
48
}
49
49
.ui-select-container [theme = "select2" ].direction-up .ui-select-dropdown {
50
+ bottom : 100% ;
51
+ top : auto;
52
+ position : absolute;
53
+
50
54
border-radius : 4px ; /* FIXME hardcoded value :-/ */
51
55
border-bottom-left-radius : 0 ;
52
56
border-bottom-right-radius : 0 ;
@@ -89,6 +93,10 @@ body > .select2-container.open {
89
93
90
94
/* Handle up direction Selectize */
91
95
.ui-select-container [theme = "selectize" ].direction-up .ui-select-dropdown {
96
+ bottom : 100% ;
97
+ top : auto;
98
+ position : absolute;
99
+
92
100
box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
93
101
94
102
margin-top : -2px ; /* FIXME hardcoded value :-/ */
@@ -250,5 +258,9 @@ body > .ui-select-bootstrap.open {
250
258
251
259
/* Handle up direction Bootstrap */
252
260
.ui-select-container [theme = "bootstrap" ].direction-up .ui-select-dropdown {
261
+ bottom : 100% ;
262
+ top : auto;
263
+ position : absolute;
264
+
253
265
box-shadow : 0 -4px 8px rgba (0 , 0 , 0 , 0.25 );
254
266
}
Original file line number Diff line number Diff line change @@ -274,8 +274,6 @@ uis.directive('uiSelect',
274
274
275
275
// Determine if the direction of the dropdown needs to be changed.
276
276
if ( offset . top + offset . height + offsetDropdown . height > $document [ 0 ] . documentElement . scrollTop + $document [ 0 ] . documentElement . clientHeight ) {
277
- dropdown [ 0 ] . style . position = 'absolute' ;
278
- dropdown [ 0 ] . style . top = ( offsetDropdown . height * - 1 ) + 'px' ;
279
277
element . addClass ( directionUpClassName ) ;
280
278
}
281
279
@@ -288,8 +286,6 @@ uis.directive('uiSelect',
288
286
}
289
287
290
288
// Reset the position of the dropdown.
291
- dropdown [ 0 ] . style . position = '' ;
292
- dropdown [ 0 ] . style . top = '' ;
293
289
element . removeClass ( directionUpClassName ) ;
294
290
}
295
291
} ) ;
You can’t perform that action at this time.
0 commit comments