Skip to content

Commit

Permalink
fix(bootstrap): backdrop position should be absolute when inside element
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Assaf (shlassaf) committed Aug 25, 2016
1 parent cf432b3 commit 33201ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/angular2-modal/plugins/bootstrap/modal.ts
Expand Up @@ -62,6 +62,9 @@ export class Modal extends Modal_ {
}


if (dialogRef.inElement) {
backdrop.setStyle('position', 'absolute');
}
backdrop.addClass('modal-backdrop fade', true);
container.setStyle('position', 'absolute');
container.setStyle('display', 'block');
Expand Down
Expand Up @@ -18,8 +18,7 @@ const DEFAULT_VALUES = {
const DEFAULT_SETTERS = [
'okBtn',
'cancelBtn',
'placeholder',
'showCloseButton'
'placeholder'
];

/**
Expand Down

0 comments on commit 33201ae

Please sign in to comment.