- removed config file (now required in a try/finally statement and created on the fly

- stretch option for panel
This commit is contained in:
jean-emmanuel 2015-09-25 17:46:24 +02:00
parent 36f4dafc79
commit 89c7accfc3
4 changed files with 9 additions and 2 deletions

View file

@ -121,6 +121,7 @@ It can also be a self invoking function that returns an array of objects :
left:'auto', // [integer] absolute position in px
height:'auto', // [integer] absolute position in px
width:'auto', // [integer] width in px
stretch:false, // [bool] set to true to stretch widgets width (don't put horizontal strips in it)
widgets: [] // [array] of widget objects
```

View file

@ -717,6 +717,13 @@ form {
> .widget {
border:0;
}
&.stretch {
display:flex;
justify-content: space-between;
> .widget {
width:100%;
}
}
}
}

View file

@ -1 +0,0 @@
{}

View file

@ -35,7 +35,7 @@ var app = require('app')
sessionFile: argv.l || false,
persistent: require( __dirname + '/config.json'),
persistent: function(){var c = {};try {c=require( __dirname + '/config.json')} finally {return c}}(),
read:function(key){
var x = this.persistent[key] || this[key]