diff --git a/src/dialog.jsx b/src/dialog.jsx index 77ee8650c49c27..9d80b21ee89be5 100644 --- a/src/dialog.jsx +++ b/src/dialog.jsx @@ -120,7 +120,7 @@ let Dialog = React.createClass({ windowListeners: { keyup: '_handleWindowKeyUp', - resize: '_positionDialog', + resize: '_handleResize', }, getDefaultProps() { @@ -403,6 +403,13 @@ let Dialog = React.createClass({ } }, + _handleResize() { + if (this.state.open) { + this.refs.dialogOverlay.preventScrolling(); + this._positionDialog(); + } + }, + }); module.exports = Dialog;