- widget's width parameter also sets min-width (fits better with streching tabs)
This commit is contained in:
parent
93d0d6223c
commit
42db8a97e7
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue