fix treeViewstyle

pull/7/head
yann300 8 years ago
parent b9b0ffaa85
commit 8df0ee54a2
  1. 4
      src/ui/TreeView.js
  2. 4
      src/ui/styles/treeView.js

@ -45,7 +45,7 @@ class TreeView {
}
formatData (key, data, children, expand, keyPath) {
var label = yo`<span style=${this.cssLabel}><label style=${ui.formatCss(style.caret)}></label><span style=${ui.formatCss(style.data)}>${this.formatSelf(key, data)}</span></span>`
var label = yo`<div style=${this.cssLabel}><div class="fa fa-caret-right" style=${ui.formatCss(style.caret)}></div><span style=${ui.formatCss(style.data)}>${this.formatSelf(key, data)}</span></div>`
var renderedChildren = ''
if (children.length) {
renderedChildren = yo`<ul style=${this.cssUl}>${children}</ul>`
@ -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`<li style=${this.cssLi}>${label}${renderedChildren}</li>`
}

@ -22,9 +22,9 @@ module.exports = {
'font-family': 'arial,sans-serif'
},
caret: {
'margin-top': '3px'
'margin-top': '3px',
'width': '10px'
},
data: {
'margin-left': '10px'
}
}

Loading…
Cancel
Save