- widget's width parameter also sets min-width (fits better with streching tabs)

This commit is contained in:
jean-emmanuel 2015-09-22 13:01:30 +02:00 • committed by bordun
parent 93d0d6223c
commit 42db8a97e7

View file

@ -67,7 +67,8 @@ parsewidgets = function(widgets,parent) {
label = widgetData.label || id,
type = widgetData.type || 'fader',
path = widgetData.path || '/' + id,
style= widgetData.width?'width:'+widgetData.width*100+'rem':''
width = clip(parseInt(widgetData.width),[1,20]),
style= widgetData.width?`width:${width*100}rem;min-width:${width*100}rem`:''
widgetData.path = path