From 722a9f6061de042d78b48958963b5001031afd58 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 12 Apr 2019 10:16:40 +0200 Subject: [PATCH 1/2] fix debugger --- src/app/components/vertical-icons-component.js | 8 ++++++++ src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js | 7 +++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 5d417b8bac..c8a8c6de43 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -89,6 +89,14 @@ class VerticalIconComponent { if (this.icons[name]) this.iconKind[kind || 'other'].removeChild(this.icons[name]) } + selected () { + let currentActive = this.view.querySelector(`.${css.active}`) + if (currentActive) { + return currentActive.getAttribute('title') + } + return null + } + select (name) { let currentActive = this.view.querySelector(`.${css.active}`) if (currentActive) { diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 6d3b57d147..29fbdbe523 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -98,11 +98,10 @@ DropdownPanel.prototype.update = function (_data, _header) { DropdownPanel.prototype.setContent = function (node) { if (!this.view) return - var parent = this.view.querySelector('.dropdownpanel div.dropdowncontent') - parent.replaceChild(node, parent.firstElementChild) + yo.update(this.view, this.render(null, node)) } -DropdownPanel.prototype.render = function (overridestyle) { +DropdownPanel.prototype.render = function (overridestyle, node) { var content = yo`
Empty
` if (this.json) { content = this.treeView.render({}) @@ -117,7 +116,7 @@ DropdownPanel.prototype.render = function (overridestyle) { var contentNode = yo`` From 53d9efcec21079a7b24930043a172cdaa39a3cda Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 16 Apr 2019 15:52:20 +0200 Subject: [PATCH 2/2] remove selected() --- src/app/components/vertical-icons-component.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index c8a8c6de43..5d417b8bac 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -89,14 +89,6 @@ class VerticalIconComponent { if (this.icons[name]) this.iconKind[kind || 'other'].removeChild(this.icons[name]) } - selected () { - let currentActive = this.view.querySelector(`.${css.active}`) - if (currentActive) { - return currentActive.getAttribute('title') - } - return null - } - select (name) { let currentActive = this.view.querySelector(`.${css.active}`) if (currentActive) {