Skip to content

Commit 0c0b03c

Browse files
author
MPopov
committed
fix(Dropdown): to be as big as its content
Set "igx-dropdown" position to absolute in order to force it to be as big as its content despite its parent element display. Closes #6733
1 parent adab6a7 commit 0c0b03c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

projects/igniteui-angular/src/lib/core/styles/components/drop-down/_drop-down-component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
$this: bem--selector-to-string(&);
1212
@include register-component(str-slice($this, 2, -1));
1313

14+
@extend %igx-drop-down !optional;
15+
1416
@include e(list) {
1517
@extend %igx-drop-down__list !optional;
1618
}

projects/igniteui-angular/src/lib/core/styles/components/drop-down/_drop-down-theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@
216216
compact: 0 rem(8px)
217217
);
218218

219+
%igx-drop-down {
220+
position: absolute;
221+
}
222+
219223
%igx-drop-down__list {
220224
overflow: hidden;
221225
border-radius: --var($theme, 'border-radius');
@@ -227,6 +231,7 @@
227231

228232
%igx-drop-down__list-scroll {
229233
overflow-y: auto;
234+
overflow-x: hidden;
230235
position: relative;
231236

232237
&:empty {

0 commit comments

Comments
 (0)