dont create pip elements if not needed (noPip||compact)
This commit is contained in:
parent
b7d9ccb0e9
commit
86f5f5f461
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ module.exports.create = function(widgetData,container) {
|
|||
container.addClass('align-'+widgetData.align)
|
||||
}
|
||||
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
if (widgetData.compact) container.addClass('compact')
|
||||
if (widgetData.noPip) wrapper.addClass('no-pip')
|
||||
|
||||
gauge.size = 0
|
||||
fader.size = 0
|
||||
|
|
@ -114,7 +114,7 @@ module.exports.create = function(widgetData,container) {
|
|||
rangeLabels.push(label)
|
||||
}
|
||||
|
||||
if (!widget.noPip) {
|
||||
if (!widgetData.noPip&&!widgetData.compact) {
|
||||
var pipTexts = {}
|
||||
for (k in rangeKeys) {
|
||||
pipTexts[rangeKeys[k]]=rangeLabels[k]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue