|
|
@ -29,6 +29,7 @@ |
|
|
|
textAlign: o.textAlign, |
|
|
|
textAlign: o.textAlign, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
whiteSpace: o.whiteSpace, |
|
|
|
lineHeight: o.textHeight, |
|
|
|
lineHeight: o.textHeight, |
|
|
|
|
|
|
|
maxWidth: "100%", |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
py: o.py, |
|
|
|
py: o.py, |
|
|
@ -185,17 +186,13 @@ |
|
|
|
})); |
|
|
|
})); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.extend(json, { |
|
|
|
this.text = BI.createWidget(BI.extend(json, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
|
lgap: o.lgap, |
|
|
|
lgap: o.lgap, |
|
|
|
rgap: o.rgap, |
|
|
|
rgap: o.rgap, |
|
|
|
tgap: o.tgap, |
|
|
|
tgap: o.tgap, |
|
|
|
bgap: o.bgap |
|
|
|
bgap: o.bgap |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.text = BI.createWidget(BI.extend(json, { |
|
|
|
|
|
|
|
maxWidth: "100%" |
|
|
|
|
|
|
|
})); |
|
|
|
})); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt", |
|
|
@ -211,7 +208,7 @@ |
|
|
|
var json = this._createJson(); |
|
|
|
var json = this._createJson(); |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.width) && o.width > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.maxWidth = o.textWidth; |
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { // 2.1
|
|
|
|
if (BI.isNumber(o.height) && o.height > 0) { // 2.1
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
@ -265,7 +262,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
json.maxWidth = o.width - 2 * o.hgap - o.lgap - o.rgap; |
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
BI.createWidget({ // 2.4
|
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
@ -285,7 +282,7 @@ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { |
|
|
|
json.width = o.textWidth; |
|
|
|
json.maxWidth = o.textWidth; |
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
BI.createWidget({ // 2.5
|
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
|
horizontalAlign: o.textAlign, |
|
|
@ -323,17 +320,13 @@ |
|
|
|
})); |
|
|
|
})); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.extend(json, { |
|
|
|
this.text = BI.createWidget(BI.extend(json, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
|
lgap: o.lgap, |
|
|
|
lgap: o.lgap, |
|
|
|
rgap: o.rgap, |
|
|
|
rgap: o.rgap, |
|
|
|
tgap: o.tgap, |
|
|
|
tgap: o.tgap, |
|
|
|
bgap: o.bgap |
|
|
|
bgap: o.bgap |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.text = BI.createWidget(BI.extend(json, { |
|
|
|
|
|
|
|
maxWidth: "100%" |
|
|
|
|
|
|
|
})); |
|
|
|
})); |
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: adaptLayout, |
|
|
|
type: adaptLayout, |
|
|
|