Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Commit

Permalink
Fix modal disappearing in IE11.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssylvia committed Mar 1, 2017
1 parent a049a3e commit c5066cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 2 additions & 0 deletions src/app/components/helper/modal/Modal.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export default class Modal extends React.Component {

return (
<div className={modalClasses} tabIndex="-1" role="dialog">
<div className="vertical-align-helper">
<div className="modal-dialog">
<div className="modal-content">
<div className="modal-header" style={this.props.headerStyle}>
Expand All @@ -67,6 +68,7 @@ export default class Modal extends React.Component {
</div>
</div>
</div>
</div>
</div>
);
}
Expand Down
15 changes: 1 addition & 14 deletions src/app/components/helper/modal/_Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
}

.modal {
display: flex;
display: -webkit-flex;
display: table;
height: 100%;
width: 100%;
justify-content: center;
-webkit-justify-content: space-around;
align-items: center;
-webkit-align-items: center;

.vertical-align-helper {
display: table-cell;
Expand All @@ -32,14 +27,6 @@
z-index: 0;
}

@media (min-width: 768px) {
.modal-dialog {
max-height: calc(100% - 20px);
overflow: auto;
margin: 0;
}
}

@media (max-width: 767px) {
.modal {
display: block;
Expand Down

0 comments on commit c5066cb

Please sign in to comment.