Browse Source

BI-127456 fix: 去掉高度

research/test
jian 1 year 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;
this.buttonGroup = BI.createWidget({
element: this,
height: BI.toPix(o.height),
type: "bi.button_group",
value: o.value,
items: [BI.createItems(o.items, {
type: "bi.segment_button",
height: BI.toPix(o.height, 2),
whiteSpace: o.whiteSpace,
})],
layouts: [{
@ -63,7 +63,6 @@ BI.Segment = BI.inherit(BI.Widget, {
var o = this.options;
this.buttonGroup.populate([BI.createItems(buttons, {
type: "bi.segment_button",
height: BI.toPix(o.height, 2),
whiteSpace: o.whiteSpace,
})]);
},

Loading…
Cancel
Save