Skip to content

Commit

Permalink
Merge pull request #4279 from IgniteUI/mvenkov/fix-dialog-position-in-IE
Browse files Browse the repository at this point in the history
Change content div position to relative in flex wrapper
  • Loading branch information
bazal4o authored Mar 15, 2019
2 parents 946102e + 3079336 commit c1b1994
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
@extend %overlay-content !optional;
@extend %overlay-content--elastic !optional;
}

@include e(content, $m: relative) {
@extend %overlay-content !optional;
@extend %overlay-content--relative !optional;
}
}

@include b(igx-toggle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,15 @@
pointer-events: initial;
}

%igx-toggle--hidden {
display: none !important;
}

%overlay-content--elastic {
overflow: auto;
}

%overlay-content--relative {
position: relative;
}

%igx-toggle--hidden {
display: none !important;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class GlobalPositionStrategy implements IPositionStrategy {
}

position(contentElement: HTMLElement, size?: Size, document?: Document, initialCall?: boolean): void {
contentElement.classList.add('igx-overlay__content--relative');
contentElement.parentElement.classList.add('igx-overlay__wrapper--flex');
switch (this.settings.horizontalDirection) {
case HorizontalAlignment.Left:
Expand Down

0 comments on commit c1b1994

Please sign in to comment.