From 69778da3e667f20713f1c3fc83c1916cb3d381a8 Mon Sep 17 00:00:00 2001 From: Alexis Berthelot Date: Mon, 14 Dec 2015 10:46:16 +0100 Subject: [PATCH] Added resize binding to brace resize function to handle dynamic resize. --- src/ace.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ace.jsx b/src/ace.jsx index 186b1d4f..607c43f7 100644 --- a/src/ace.jsx +++ b/src/ace.jsx @@ -155,6 +155,9 @@ module.exports = React.createClass({ this.editor.setValue(nextProps.value, nextProps.cursorStart); this.silent = false; } + if(nextProps.height !== this.props.height){ + this.editor.resize(); + } }, render: function() {