Browse Source

BI-127456 fix: 去掉高度

research/test
jian 2 years ago
parent
commit
0ae51ec2dc
  1. 3
      src/case/segment/segment.js

3
src/case/segment/segment.js

@ -18,11 +18,11 @@ BI.Segment = BI.inherit(BI.Widget, {
var self = this, o = this.options; var self = this, o = this.options;
this.buttonGroup = BI.createWidget({ this.buttonGroup = BI.createWidget({
element: this, element: this,
height: BI.toPix(o.height),
type: "bi.button_group", type: "bi.button_group",
value: o.value, value: o.value,
items: [BI.createItems(o.items, { items: [BI.createItems(o.items, {
type: "bi.segment_button", type: "bi.segment_button",
height: BI.toPix(o.height, 2),
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
})], })],
layouts: [{ layouts: [{
@ -63,7 +63,6 @@ BI.Segment = BI.inherit(BI.Widget, {
var o = this.options; var o = this.options;
this.buttonGroup.populate([BI.createItems(buttons, { this.buttonGroup.populate([BI.createItems(buttons, {
type: "bi.segment_button", type: "bi.segment_button",
height: BI.toPix(o.height, 2),
whiteSpace: o.whiteSpace, whiteSpace: o.whiteSpace,
})]); })]);
}, },

Loading…
Cancel
Save