diff options
author | sanine <sanine.not@pm.me> | 2022-06-05 22:31:03 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-06-05 22:31:03 -0500 |
commit | fcb07257f0208612816c888b7b6f9b8ac4c4570e (patch) | |
tree | 272d1ceccf49ebfeced3ed93f1dd3fd9488d7c73 /src/Map/Layer.js | |
parent | 980dc4390e5414b4892421dea3ebb99f1a5839ac (diff) |
add draggable 'windows'node-based
Diffstat (limited to 'src/Map/Layer.js')
-rw-r--r-- | src/Map/Layer.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Map/Layer.js b/src/Map/Layer.js index 1f486ad..38037f5 100644 --- a/src/Map/Layer.js +++ b/src/Map/Layer.js @@ -130,9 +130,7 @@ class LayerData { class LayerView { - constructor(parentId) { - const parentElement = document.getElementById(parentId); - + constructor(parentElement) { const button = (label, f) => { const b = h('button', label, { 'style': 'margin: 0 5px' }); b.onclick = f; @@ -141,8 +139,7 @@ class LayerView { this.layersList = h('ul'); - const root = h('fieldset', { 'class': 'layer-view' }, [ - h('legend', 'Layers'), + const root = h('div', { 'class': 'layer-view' }, [ this.layersList, button('Move Up', () => this.onMoveUp(this._getIdChain())), button('Move Down', () => this.onMoveDown(this._getIdChain())), |