We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b0881a + 439ccfc commit 23fd701Copy full SHA for 23fd701
src/dialog.jsx
@@ -121,7 +121,7 @@ let Dialog = React.createClass({
121
122
windowListeners: {
123
keyup: '_handleWindowKeyUp',
124
- resize: '_positionDialog',
+ resize: '_handleResize',
125
},
126
127
getDefaultProps() {
@@ -469,6 +469,13 @@ let Dialog = React.createClass({
469
}
470
471
472
+ _handleResize() {
473
+ if (this.state.open) {
474
+ this.refs.dialogOverlay.preventScrolling();
475
+ this._positionDialog();
476
+ }
477
+ },
478
+
479
});
480
481
module.exports = Dialog;
0 commit comments