align option for fader

This commit is contained in:
jean-emmanuel 2016-03-22 22:28:57 +01:00
parent 14868f3b78
commit b06bad1596
4 changed files with 36 additions and 2 deletions

View file

@ -17,6 +17,7 @@ module.exports.options = {
top:'auto',
width:'auto',
height:'auto',
align:'center',
horizontal:false,
color:'auto',
css:'',
@ -61,7 +62,12 @@ module.exports.create = function(widgetData,container) {
roundFactor = Math.pow(10,widgetData.precision)
if (widgetData.horizontal) container.addClass('horizontal')
if (widgetData.horizontal) {
container.addClass('horizontal')
delete widgetData.align
} else {
container.addClass('align-'+widgetData.align)
}
handle.size = 0
fader.size = 0