diff --git a/com/isoterminal.js b/com/isoterminal.js index a6a553f..930df54 100644 --- a/com/isoterminal.js +++ b/com/isoterminal.js @@ -234,7 +234,7 @@ if( typeof AFRAME != 'undefined '){ },100) //instance.winbox.resize(720,380) let size = `width: ${this.data.width}; height: ${this.data.height}` - instance.setAttribute("window", `title: xrsh.iso; uid: ${instance.uid}; attach: #overlay; dom: #${instance.dom.id}; ${size}; min: ${this.data.minimized}; max: ${this.data.maximized}`) + instance.setAttribute("window", `title: xrsh.iso; uid: ${instance.uid}; attach: #overlay; dom: #${instance.dom.id}; ${size}; min: ${this.data.minimized}; max: ${this.data.maximized}; class: no-full, no-resize, no-move`) }) instance.addEventListener('window.oncreate', (e) => { diff --git a/com/window.js b/com/window.js index 07ddeda..8395e6b 100644 --- a/com/window.js +++ b/com/window.js @@ -9,7 +9,8 @@ AFRAME.registerComponent('window', { max: {type:'boolean',"default":false}, min: {type:'boolean',"default":false}, x: {type:'string',"default":"center"}, - y: {type:'string',"default":"center"} + y: {type:'string',"default":"center"}, + "class": {type:'array',"default":[]}, }, dependencies:{ @@ -28,6 +29,7 @@ AFRAME.registerComponent('window', { this.el.dom.style.display = 'none' let winbox = this.el.winbox = new WinBox( this.data.title, { + class: this.data.class, height:this.data.height, width:this.data.width, x: this.data.x,