editor: fix "Bring to front" and "Send to back" context menu actions
This commit is contained in:
parent
2aea8c6cf0
commit
16442b664f
2 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue