Skip to content

Commit

Permalink
Merge branch 'fix/dialog-position-orientation-change' into custom-build
Browse files Browse the repository at this point in the history
* fix/dialog-position-orientation-change:
  [Dialog] position dialog on orientation change
  • Loading branch information
adam187 committed Jul 27, 2017
2 parents 613217b + ac6e817 commit 24b6421
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ class DialogInline extends Component {
this.positionDialog();
};

handleOrientationChange = () => {
this.positionDialog();
};

render() {
const {
actions,
Expand Down Expand Up @@ -339,6 +343,7 @@ class DialogInline extends Component {
target="window"
onKeyUp={this.handleKeyUp}
onResize={this.handleResize}
onOrientationChange={this.handleOrientationChange}
/>
}
<ReactTransitionGroup
Expand Down

0 comments on commit 24b6421

Please sign in to comment.