editor: fix "Bring to front" and "Send to back" context menu actions

This commit is contained in:
jean-emmanuel 2021-05-06 13:57:05 +02:00
parent 2aea8c6cf0
commit 16442b664f
2 changed files with 6 additions and 3 deletions

View file

@ -5,6 +5,7 @@
- bug fixes
- advanced syntaxes: various isses and regressions
- editor: preserve advanced syntaxes in `left` and `top` when pasting a widget
- editor: fix "Bring to front" and "Send to back" context menu actions
- editor
- tree: update widget visibility when it changes dynamically

View file

@ -115,7 +115,7 @@ class Editor {
}
this.widgetTree.showWidget(container.children[newIndex])
if (!event.ignoreTree) this.widgetTree.showWidget(container.children[newIndex])
})
@ -434,9 +434,11 @@ class Editor {
if (index !== newIndex) {
this.widgetTree.trigger('sorted', {
widget: curWidget2.parent,
from: curWidget2.parent,
to: curWidget2.parent,
oldIndex: index,
newIndex: newIndex
newIndex: newIndex,
ignoreTree: true
})
}
break