From 8df0ee54a254b94f4a35fa8d51123bcd64208dd5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 10 May 2017 16:57:02 +0200 Subject: [PATCH] fix treeViewstyle --- src/ui/TreeView.js | 4 ++-- src/ui/styles/treeView.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/TreeView.js b/src/ui/TreeView.js index 8e52e1e789..680d3b4939 100644 --- a/src/ui/TreeView.js +++ b/src/ui/TreeView.js @@ -45,7 +45,7 @@ class TreeView { } formatData (key, data, children, expand, keyPath) { - var label = yo`${this.formatSelf(key, data)}` + var label = yo`
${this.formatSelf(key, data)}
` var renderedChildren = '' if (children.length) { renderedChildren = yo`` @@ -59,7 +59,7 @@ class TreeView { self.nodeIsExpanded[keyPath] = list.style.display === 'block' } } else { - label.firstElementChild.style.display = 'none' + label.firstElementChild.style.visibility = 'hidden' } return yo`
  • ${label}${renderedChildren}
  • ` } diff --git a/src/ui/styles/treeView.js b/src/ui/styles/treeView.js index 1c526ca1d9..b50bacd24f 100644 --- a/src/ui/styles/treeView.js +++ b/src/ui/styles/treeView.js @@ -22,9 +22,9 @@ module.exports = { 'font-family': 'arial,sans-serif' }, caret: { - 'margin-top': '3px' + 'margin-top': '3px', + 'width': '10px' }, data: { - 'margin-left': '10px' } }