|
|
|
@ -36,7 +36,7 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
BI.NumberInterval.superclass._init.apply(this, arguments); |
|
|
|
|
this.smallEditor = BI.createWidget({ |
|
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 1 : 2), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 1 : 2), |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
allowBlank: o.allowBlank, |
|
|
|
|
value: o.min, |
|
|
|
@ -61,7 +61,7 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
this.smallTip = BI.createWidget({ |
|
|
|
|
type: "bi.label", |
|
|
|
|
text: o.numTip, |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 1 : 2), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 1 : 2), |
|
|
|
|
invisible: true |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
@ -76,7 +76,7 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
|
|
|
|
|
this.bigEditor = BI.createWidget({ |
|
|
|
|
type: "bi.number_interval_single_editor", |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 1 : 2), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 1 : 2), |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
allowBlank: o.allowBlank, |
|
|
|
|
value: o.max, |
|
|
|
@ -99,7 +99,7 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
this.bigTip = BI.createWidget({ |
|
|
|
|
type: "bi.label", |
|
|
|
|
text: o.numTip, |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 1 : 2), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 1 : 2), |
|
|
|
|
invisible: true |
|
|
|
|
}); |
|
|
|
|
BI.createWidget({ |
|
|
|
@ -114,8 +114,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
this.smallCombo = BI.createWidget({ |
|
|
|
|
type: "bi.icon_combo", |
|
|
|
|
cls: "number-interval-small-combo" + (o.simple ? "" : " bi-border-top bi-border-bottom bi-border-right bi-border-corner-right-radius"), |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 0 : 2), |
|
|
|
|
width: BI.pixFormat(c.width, c.border), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 0 : 2), |
|
|
|
|
width: BI.toPix(c.width, c.border), |
|
|
|
|
items: [{ |
|
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
|
iconCls: "less-font", |
|
|
|
@ -134,8 +134,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
this.bigCombo = BI.createWidget({ |
|
|
|
|
type: "bi.icon_combo", |
|
|
|
|
cls: "number-interval-big-combo" + (o.simple ? "" : " bi-border-top bi-border-bottom bi-border-left bi-border-corner-left-radius"), |
|
|
|
|
height: BI.pixFormat(o.height, o.simple ? 0 : 2), |
|
|
|
|
width: BI.pixFormat(c.width, c.border), |
|
|
|
|
height: BI.toPix(o.height, o.simple ? 0 : 2), |
|
|
|
|
width: BI.toPix(c.width, c.border), |
|
|
|
|
items: [{ |
|
|
|
|
text: "(" + BI.i18nText("BI-Less_Than") + ")", |
|
|
|
|
iconCls: "less-font", |
|
|
|
@ -155,7 +155,7 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.label", |
|
|
|
|
text: BI.i18nText("BI-Basic_Value"), |
|
|
|
|
textHeight: o.height, |
|
|
|
|
// width: BI.pixFormat(o.width, o.simple ? 0 : c.border * 2),
|
|
|
|
|
// width: BI.toPix(o.width, o.simple ? 0 : c.border * 2),
|
|
|
|
|
hgap: 5, |
|
|
|
|
height: o.height, |
|
|
|
|
level: "warning", |
|
|
|
|