fix: make sure ace editor adapts properly to different size

This commit is contained in:
Géry Debongnie
2019-04-01 14:10:37 +02:00
parent 11e7f5b733
commit 89e6a00d3e
+1
View File
@@ -62,6 +62,7 @@ class TabbedEditor extends Component {
updateProps() {
const result = super.updateProps(...arguments);
if (this.editor) {
window.dispatchEvent(new Event("resize"));
this.editor.setValue(this.props[this.state.currentTab], -1);
}
return result;