add "noPip" option to fader & knob (hide pip scale and frees some space)

This commit is contained in:
jean-emmanuel 2016-03-29 08:45:35 +02:00
parent bf0173c251
commit d657ec7ef6
6 changed files with 32 additions and 1 deletions

View file

@ -1717,6 +1717,7 @@ module.exports.options = {
height:'auto',
align:'center',
horizontal:false,
noPip:false,
color:'auto',
css:'',
@ -1767,6 +1768,8 @@ module.exports.create = function(widgetData,container) {
container.addClass('align-'+widgetData.align)
}
if (widgetData.noPip) wrapper.addClass('no-pip')
gauge.size = 0
fader.size = 0
wrapper.size = 0
@ -2002,6 +2005,7 @@ module.exports.options = {
width:'auto',
height:'auto',
color:'auto',
noPip:false,
css:'',
separator2:'behaviour',
@ -2045,6 +2049,8 @@ module.exports.create = function(widgetData,container) {
logScale = widgetData.logScale,
roundFactor = Math.pow(10,widgetData.precision)
if (widgetData.noPip) wrapper.addClass('no-pip')
var rangeKeys = [],
rangeVals = [],