strips: continue refactoring, add spacing option

This commit is contained in:
jean-emmanuel 2017-06-05 23:18:03 +02:00
parent a60710e246
commit 1304ce2586
9 changed files with 318 additions and 144 deletions

View file

@ -22,6 +22,7 @@ module.exports = class Strip extends Panel {
horizontal:false,
stretch:false,
spacing:0,
_children:'children',
@ -38,6 +39,8 @@ module.exports = class Strip extends Panel {
super(options)
this.widget[0].style.setProperty('--spacing', this.getProp('spacing'))
this.container.addClass(this.getProp('horizontal') ? 'horizontal' : 'vertical')
this.container.addClass(this.getProp('stretch') ? 'stretch' : '')