diff --git a/src/dialog.jsx b/src/dialog.jsx index 1e5d3cb5f5a3be..332fded72658fd 100644 --- a/src/dialog.jsx +++ b/src/dialog.jsx @@ -121,7 +121,7 @@ let Dialog = React.createClass({ windowListeners: { keyup: '_handleWindowKeyUp', - resize: '_positionDialog', + resize: '_handleResize', }, getDefaultProps() { @@ -469,6 +469,13 @@ let Dialog = React.createClass({ } }, + _handleResize() { + if (this.state.open) { + this.refs.dialogOverlay.preventScrolling(); + this._positionDialog(); + } + }, + }); module.exports = Dialog;