fix(editor): fix resource locator width for trigger nodes (#4302)

This commit is contained in:
Mutasem Aldmour
2022-10-10 13:07:12 +02:00
committed by GitHub
parent 561245b6e0
commit 845d1f8bd9

View File

@@ -427,9 +427,11 @@ export default mixins(debounceHelper, workflowHelpers, nodeHelpers).extend({
}, },
mounted() { mounted() {
this.$on('refreshList', this.refreshList); this.$on('refreshList', this.refreshList);
this.setWidth();
window.addEventListener('resize', this.setWidth); window.addEventListener('resize', this.setWidth);
this.mainPanelMutationSubscription = this.$store.subscribe(this.setWidthOnMainPanelResize); this.mainPanelMutationSubscription = this.$store.subscribe(this.setWidthOnMainPanelResize);
setTimeout(() => {
this.setWidth();
}, 0);
}, },
beforeDestroy() { beforeDestroy() {
// Unsubscribe // Unsubscribe