From 42db8a97e7e13bc9e16b18680e80ed3f0c8db994 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 22 Sep 2015 13:01:30 +0200 Subject: [PATCH] - widget's width parameter also sets min-width (fits better with streching tabs) --- app/browser/js/app/parser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/browser/js/app/parser.js b/app/browser/js/app/parser.js index ee77c2a9..1a35a8bc 100644 --- a/app/browser/js/app/parser.js +++ b/app/browser/js/app/parser.js @@ -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