refactor to be tiling window manager friendly

This commit is contained in:
mix irving
2017-11-16 21:42:46 +13:00
parent a4cce3eb85
commit cb41477afa
4 changed files with 35 additions and 27 deletions

View File

@@ -51,7 +51,7 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca
this.install = function()
{
document.body.appendChild(this.wrapper);
document.getElementById("app").appendChild(this.wrapper);
this.wrapper.appendChild(this.element);
this.element.appendChild(this.guide.el);
this.element.appendChild(this.guide.widgets);

View File

@@ -6,7 +6,7 @@ function Interface()
this.start = function()
{
document.body.appendChild(this.el);
document.getElementById("app").appendChild(this.el);
// Interface
var html = ""
@@ -55,4 +55,4 @@ function Interface()
var win = require('electron').remote.getCurrentWindow();
win.setSize(900,this.is_visible ? 420 : 400);
}
}
}