diff --git a/src/case/linersegment/button.linear.segment.js b/src/case/linersegment/button.linear.segment.js index be8403844..38479accb 100644 --- a/src/case/linersegment/button.linear.segment.js +++ b/src/case/linersegment/button.linear.segment.js @@ -5,7 +5,7 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { once: true, readonly: true, hgap: 10, - height: 25 + height: 24 }, render: function () { @@ -15,6 +15,7 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { type: "bi.label", text: o.text, height: o.height, + textHeight: o.height - 2, value: o.value, hgap: o.hgap, ref: function () { @@ -51,4 +52,4 @@ BI.LinearSegmentButton = BI.inherit(BI.BasicButton, { this.text.setText(text); } }); -BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton); \ No newline at end of file +BI.shortcut("bi.linear_segment_button", BI.LinearSegmentButton); diff --git a/src/case/linersegment/linear.segment.js b/src/case/linersegment/linear.segment.js index d7febfcd1..3c1b677c3 100644 --- a/src/case/linersegment/linear.segment.js +++ b/src/case/linersegment/linear.segment.js @@ -6,7 +6,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, { layouts: [{ type: "bi.center" }], - height: 29 + height: 30 }, render: function () { @@ -15,7 +15,7 @@ BI.LinearSegment = BI.inherit(BI.Widget, { type: "bi.button_group", items: BI.createItems(o.items, { type: "bi.linear_segment_button", - height: o.height - 1 + height: o.height }), layouts: o.layouts, value: o.value,