mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
fix: make sure ace editor adapts properly to different size
This commit is contained in:
@@ -62,6 +62,7 @@ class TabbedEditor extends Component {
|
|||||||
updateProps() {
|
updateProps() {
|
||||||
const result = super.updateProps(...arguments);
|
const result = super.updateProps(...arguments);
|
||||||
if (this.editor) {
|
if (this.editor) {
|
||||||
|
window.dispatchEvent(new Event("resize"));
|
||||||
this.editor.setValue(this.props[this.state.currentTab], -1);
|
this.editor.setValue(this.props[this.state.currentTab], -1);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user