From fcb07257f0208612816c888b7b6f9b8ac4c4570e Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 5 Jun 2022 22:31:03 -0500 Subject: add draggable 'windows' --- src/Map/Layer.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/Map/Layer.js') 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())), -- cgit v1.2.1